mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 08:54:13 +00:00
420b7913d4
2820ab0b51 Merge pull request #1076 from KhronosGroup/bitcast-pre-330-glsl 63bcbd511e GLSL: Need extension to use bitcast on GLSL < 330. 9f3bebe3d0 Merge pull request #1075 from lifpan/master b11c20fc1d Remove unreasonable assertion for OpTypeImage Sampled parameter. 1a592b7c0f Merge pull request #1067 from cdavis5e/msl-scalar-block-layout 28454facbb MSL: Handle packed matrices. ea5c0ed82f MSL: Fix alignment of packed types. 44f688bf0b Merge pull request #1070 from KhronosGroup/fix-1066 25c74b324e Forget loop variable enables after emitting block chain. 6b010e0cbc Merge pull request #1069 from KhronosGroup/fix-1053 f6f849397e MSL: Re-roll array expressions in initializers. e5fa7edfd6 MSL: Support scalar block layout. git-subtree-dir: deps/SPIRV-Cross git-subtree-split: 2820ab0b51bf5e4187435d904b34e762b988f48b
51 lines
2.1 KiB
Plaintext
51 lines
2.1 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos Glslang Reference Front End; 6
|
|
; Bound: 26
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %main "main" %gl_WorkGroupID %gl_GlobalInvocationID
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
OpSource GLSL 450
|
|
OpName %main "main"
|
|
OpName %BUF "BUF"
|
|
OpMemberName %BUF 0 "values"
|
|
OpName %_ ""
|
|
OpName %gl_WorkGroupID "gl_WorkGroupID"
|
|
OpName %gl_GlobalInvocationID "gl_GlobalInvocationID"
|
|
OpDecorate %_runtimearr_int ArrayStride 4
|
|
OpMemberDecorate %BUF 0 Offset 0
|
|
OpDecorate %BUF BufferBlock
|
|
OpDecorate %_ DescriptorSet 0
|
|
OpDecorate %_ Binding 0
|
|
OpDecorate %gl_WorkGroupID BuiltIn WorkgroupId
|
|
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
|
|
%void = OpTypeVoid
|
|
%int = OpTypeInt 32 1
|
|
%_runtimearr_int = OpTypeRuntimeArray %int
|
|
%3 = OpTypeFunction %void
|
|
%BUF = OpTypeStruct %_runtimearr_int
|
|
%_ptr_Uniform_BUF = OpTypePointer Uniform %BUF
|
|
%_ = OpVariable %_ptr_Uniform_BUF Uniform
|
|
%int_0 = OpConstant %int 0
|
|
%v3int = OpTypeVector %int 3
|
|
%_ptr_Input_v3int = OpTypePointer Input %v3int
|
|
%gl_WorkGroupID = OpVariable %_ptr_Input_v3int Input
|
|
%int_1 = OpConstant %int 1
|
|
%_ptr_Input_int = OpTypePointer Input %int
|
|
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3int Input
|
|
%int_2 = OpConstant %int 2
|
|
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
|
%main = OpFunction %void None %3
|
|
%5 = OpLabel
|
|
%18 = OpAccessChain %_ptr_Input_int %gl_WorkGroupID %int_1
|
|
%19 = OpLoad %int %18
|
|
%22 = OpAccessChain %_ptr_Input_int %gl_GlobalInvocationID %int_2
|
|
%23 = OpLoad %int %22
|
|
%25 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %19
|
|
OpStore %25 %23
|
|
OpReturn
|
|
OpFunctionEnd
|