#version 460 // vk_aftermath_test: every invocation writes through the buffer device address in the push constants. The test passes // an address no buffer is bound to, so the store page-faults and the device is lost (no hang, no TDR). #extension GL_EXT_buffer_reference : require #extension GL_EXT_shader_explicit_arithmetic_types_int64 : require layout(local_size_x = 64) in; layout(buffer_reference, std430, buffer_reference_align = 4) buffer Words { uint v[]; }; layout(push_constant) uniform Push { uint64_t address; } pc; void main() { Words words = Words(pc.address); words.v[gl_GlobalInvocationID.x * 1024u] = gl_GlobalInvocationID.x + 1u; }