yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wint3rNightAccumulate nontemporal in CoherentFlags::operator|=4702cf62

main
624 B24 linesraw
1#version 460
2
3#pragma use_vulkan_memory_model
4
5#extension GL_EXT_nontemporal_keyword: require
6
7// Reading a nontemporal value through a swizzle. The flag is carried on the
8// access chain, and pushing the swizzle onto that chain must combine the two
9// sets of flags rather than replace them. Both loads below must therefore
10// carry the Nontemporal memory operand.
11layout(binding=0) buffer nontemporal NONTEMPORAL_BLOCK {
12    vec4 blk_in;
13    vec2 blk_out;
14};
15
16layout(binding=1) buffer BLOCK_NONTEMPORAL {
17    nontemporal vec4 mem_in;
18    vec2 mem_out;
19};
20
21void main() {
22    blk_out = blk_in.xy;
23    mem_out = mem_in.zw;
24}