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:
Aliya Pazylbekova
2020-04-29 18:48:37 +01:00
committed by Baldur Karlsson
parent ccab431cd1
commit 2cb546686b
9 changed files with 456 additions and 154 deletions
+12 -3
View File
@@ -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);