projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git]
/
Test
/
hlsl.earlydepthstencil.frag
1
RWTexture2D<uint> Values;
\r
2
\r
3
struct InputStruct {
\r
4
float4 Position : SV_POSITION;
\r
5
};
\r
6
\r
7
[earlydepthstencil]
\r
8
uint main(InputStruct input) : SV_Target {
\r
9
uint oldVal;
\r
10
InterlockedExchange(Values[uint2(input.Position.x, input.Position.y)], 1.0, oldVal);
\r
11
return oldVal;
\r
12
}
\r