41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
; Test: SpvModuleScopeVarParserTest_BuiltinPosition_BuiltIn_Position_Initializer.spvasm
|
|
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 25
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical Simple
|
|
OpEntryPoint Vertex %2 "main" %1
|
|
OpMemberDecorate %_struct_10 0 BuiltIn Position
|
|
OpMemberDecorate %_struct_10 1 BuiltIn PointSize
|
|
OpMemberDecorate %_struct_10 2 BuiltIn ClipDistance
|
|
OpMemberDecorate %_struct_10 3 BuiltIn CullDistance
|
|
%void = OpTypeVoid
|
|
%4 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%uint_1 = OpConstant %uint 1
|
|
%_arr_float_uint_1 = OpTypeArray %float %uint_1
|
|
%_struct_10 = OpTypeStruct %v4float %float %_arr_float_uint_1 %_arr_float_uint_1
|
|
%_ptr_Output__struct_10 = OpTypePointer Output %_struct_10
|
|
%float_1 = OpConstant %float 1
|
|
%float_2 = OpConstant %float 2
|
|
%float_3 = OpConstant %float 3
|
|
%float_4 = OpConstant %float 4
|
|
%float_5 = OpConstant %float 5
|
|
%float_6 = OpConstant %float 6
|
|
%float_7 = OpConstant %float 7
|
|
%20 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
|
%21 = OpConstantComposite %_arr_float_uint_1 %float_6
|
|
%22 = OpConstantComposite %_arr_float_uint_1 %float_7
|
|
%23 = OpConstantComposite %_struct_10 %20 %float_5 %21 %22
|
|
%1 = OpVariable %_ptr_Output__struct_10 Output %23
|
|
%2 = OpFunction %void None %4
|
|
%24 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
|