1#version 450 core 2 3#extension GL_EXT_spirv_intrinsics: enable 4#extension GL_ARB_gpu_shader_int64: enable 5 6spirv_instruction (extensions = ["SPV_KHR_shader_clock"], capabilities = [5055], id = 5056) 7uvec2 clockRealtime2x32EXT(int); 8 9spirv_instruction (extensions = ["SPV_KHR_shader_clock"], capabilities = [5055], id = 5056) 10uint64_t clockRealtimeEXT(int); 11 12spirv_instruction (extensions = ["SPV_AMD_shader_trinary_minmax"], set = "SPV_AMD_shader_trinary_minmax", id = 1) 13vec2 min3(vec2 x, vec2 y, vec2 z); 14 15layout(location = 0) in vec3 vec3In; 16 17layout(location = 0) out uvec2 uvec2Out; 18layout(location = 1) out uint64_t u64Out; 19layout(location = 2) out vec2 vec2Out; 20 21void main() 22{ 23 uvec2Out = clockRealtime2x32EXT(1); 24 u64Out = clockRealtimeEXT(1); 25 vec2Out = min3(vec3In.xy, vec3In.yz, vec3In.zx); 26}