dawn-cmake/test/tint/bug/tint/998.wgsl.expected.spvasm

66 lines
2.7 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %constants_block "constants_block"
OpMemberName %constants_block 0 "inner"
OpName %Constants "Constants"
OpMemberName %Constants 0 "zero"
OpName %constants "constants"
OpName %result_block "result_block"
OpMemberName %result_block 0 "inner"
OpName %Result "Result"
OpMemberName %Result 0 "value"
OpName %result "result"
OpName %S "S"
OpMemberName %S 0 "data"
OpName %s "s"
OpName %main "main"
OpDecorate %constants_block Block
OpMemberDecorate %constants_block 0 Offset 0
OpMemberDecorate %Constants 0 Offset 0
OpDecorate %constants NonWritable
OpDecorate %constants DescriptorSet 1
OpDecorate %constants Binding 0
OpDecorate %result_block Block
OpMemberDecorate %result_block 0 Offset 0
OpMemberDecorate %Result 0 Offset 0
OpDecorate %result DescriptorSet 1
OpDecorate %result Binding 1
OpMemberDecorate %S 0 Offset 0
OpDecorate %_arr_uint_uint_3 ArrayStride 4
%uint = OpTypeInt 32 0
%Constants = OpTypeStruct %uint
%constants_block = OpTypeStruct %Constants
%_ptr_Uniform_constants_block = OpTypePointer Uniform %constants_block
%constants = OpVariable %_ptr_Uniform_constants_block Uniform
%Result = OpTypeStruct %uint
%result_block = OpTypeStruct %Result
%_ptr_StorageBuffer_result_block = OpTypePointer StorageBuffer %result_block
%result = OpVariable %_ptr_StorageBuffer_result_block StorageBuffer
%uint_3 = OpConstant %uint 3
%_arr_uint_uint_3 = OpTypeArray %uint %uint_3
%S = OpTypeStruct %_arr_uint_uint_3
%_ptr_Private_S = OpTypePointer Private %S
%15 = OpConstantNull %S
%s = OpVariable %_ptr_Private_S Private %15
%void = OpTypeVoid
%16 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%_ptr_Private_uint = OpTypePointer Private %uint
%26 = OpConstantNull %uint
%main = OpFunction %void None %16
%19 = OpLabel
%22 = OpAccessChain %_ptr_Uniform_uint %constants %uint_0 %uint_0
%23 = OpLoad %uint %22
%25 = OpAccessChain %_ptr_Private_uint %s %uint_0 %23
OpStore %25 %26
OpReturn
OpFunctionEnd