mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 14:36:35 +00:00
Vk Pixel History: multi sampled colour
Colour only, depth/stencil copy not supported. This means that we only report pre-mod and post-mod colour values for events. Since stencil copy is not supported, number of fragments is not reported, and shader output is not queried.
This commit is contained in:
committed by
Baldur Karlsson
parent
ccab431cd1
commit
2cb546686b
@@ -70,9 +70,18 @@ uniform ivec4 mscopy;
|
||||
void main()
|
||||
{
|
||||
ivec3 id = ivec3(gl_GlobalInvocationID);
|
||||
|
||||
int slice = int(id.z / numMultiSamples);
|
||||
int sampleIdx = int(id.z % numMultiSamples);
|
||||
int slice;
|
||||
int sampleIdx;
|
||||
if(numMultiSamples == 0)
|
||||
{
|
||||
slice = currentSlice;
|
||||
sampleIdx = currentSample;
|
||||
}
|
||||
else
|
||||
{
|
||||
slice = int(id.z / numMultiSamples);
|
||||
sampleIdx = int(id.z % numMultiSamples);
|
||||
}
|
||||
|
||||
uvec4 data = texelFetch(srcMS, ivec3(int(id.x), int(id.y), slice), sampleIdx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user