mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
a1f8cd429f
Make sure that an id represents a variable before adding it to an entry point's interface. Fixes #3297.
13 lines
409 B
Plaintext
13 lines
409 B
Plaintext
[[vk::binding(0, 0)]] ByteAddressBuffer buffer_position_ms;
|
|
[[vk::binding(1, 0)]] RWByteAddressBuffer r;
|
|
|
|
float3 pull_position(ByteAddressBuffer buffer_position, uint vertex_id) {
|
|
return asfloat(buffer_position.Load3(vertex_id * 3 * 4));
|
|
}
|
|
|
|
[numthreads(64, 1, 1)]
|
|
void main(uint gi : SV_GroupIndex) {
|
|
float3 position_ms = pull_position(buffer_position_ms, gi);
|
|
|
|
r.Store3(0, asuint(position_ms));
|
|
} |