RetroArch/deps/SPIRV-Cross/shaders/asm/comp/hlsl-functionality.asm.comp
twinaphex 420b7913d4 Squashed 'deps/SPIRV-Cross/' changes from 8aa6731925..2820ab0b51
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
2019-07-11 20:37:45 +02:00

65 lines
2.6 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 6
; Bound: 31
; Schema: 0
OpCapability Shader
OpExtension "SPV_GOOGLE_hlsl_functionality1"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpSource HLSL 500
OpName %main "main"
OpName %_main_ "@main("
OpName %Buf "Buf"
OpMemberName %Buf 0 "@data"
OpName %Buf_0 "Buf"
OpName %Buf_count "Buf@count"
OpMemberName %Buf_count 0 "@count"
OpName %Buf_count_0 "Buf@count"
OpDecorate %_runtimearr_v4float ArrayStride 16
OpMemberDecorate %Buf 0 Offset 0
OpDecorate %Buf BufferBlock
OpDecorate %Buf_0 DescriptorSet 0
OpDecorate %Buf_0 Binding 0
OpMemberDecorate %Buf_count 0 Offset 0
OpDecorate %Buf_count BufferBlock
OpDecorate %Buf_count_0 DescriptorSet 0
OpDecorate %Buf_count_0 Binding 1
OpDecorateId %Buf_0 HlslCounterBufferGOOGLE %Buf_count_0
%void = OpTypeVoid
%3 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_runtimearr_v4float = OpTypeRuntimeArray %v4float
%Buf = OpTypeStruct %_runtimearr_v4float
%_ptr_Uniform_Buf = OpTypePointer Uniform %Buf
%Buf_0 = OpVariable %_ptr_Uniform_Buf Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%Buf_count = OpTypeStruct %int
%_ptr_Uniform_Buf_count = OpTypePointer Uniform %Buf_count
%Buf_count_0 = OpVariable %_ptr_Uniform_Buf_count Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%uint_0 = OpConstant %uint 0
%float_1 = OpConstant %float 1
%27 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%main = OpFunction %void None %3
%5 = OpLabel
%30 = OpFunctionCall %void %_main_
OpReturn
OpFunctionEnd
%_main_ = OpFunction %void None %3
%7 = OpLabel
%20 = OpAccessChain %_ptr_Uniform_int %Buf_count_0 %int_0
%25 = OpAtomicIAdd %int %20 %uint_1 %uint_0 %int_1
%29 = OpAccessChain %_ptr_Uniform_v4float %Buf_0 %int_0 %25
OpStore %29 %27
OpReturn
OpFunctionEnd