Implement register and vertex-shader-written point size. Fix point size computation in geometry shader (convert pixel size to NDC scale using viewport size). Fix point sprite coordinate generation.
108 lines
5.2 KiB
Plaintext
108 lines
5.2 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos Glslang Reference Front End; 1
|
|
; Bound: 52
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpCapability Sampled1D
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %in_interpolators %oC
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpSource GLSL 450
|
|
OpName %main "main"
|
|
OpName %consts_type "consts_type"
|
|
OpMemberName %consts_type 0 "float_consts"
|
|
OpMemberName %consts_type 1 "loop_consts"
|
|
OpMemberName %consts_type 2 "bool_consts"
|
|
OpName %consts "consts"
|
|
OpName %push_consts_type "push_consts_type"
|
|
OpMemberName %push_consts_type 0 "window_scale"
|
|
OpMemberName %push_consts_type 1 "vtx_fmt"
|
|
OpMemberName %push_consts_type 2 "point_size"
|
|
OpMemberName %push_consts_type 3 "alpha_test"
|
|
OpMemberName %push_consts_type 4 "ps_param_gen"
|
|
OpName %push_constants "push_constants"
|
|
OpName %textures1D "textures1D"
|
|
OpName %textures2D "textures2D"
|
|
OpName %textures3D "textures3D"
|
|
OpName %textures4D "textures4D"
|
|
OpName %in_interpolators "in_interpolators"
|
|
OpName %oC "oC"
|
|
OpDecorate %_arr_v4float_10 ArrayStride 16
|
|
OpDecorate %_arr_uint_12 ArrayStride 16
|
|
OpDecorate %_arr_uint_14 ArrayStride 16
|
|
OpMemberDecorate %consts_type 0 Offset 0
|
|
OpMemberDecorate %consts_type 1 Offset 8192
|
|
OpMemberDecorate %consts_type 2 Offset 8704
|
|
OpDecorate %consts_type Block
|
|
OpDecorate %consts DescriptorSet 0
|
|
OpDecorate %consts Binding 1
|
|
OpMemberDecorate %push_consts_type 0 Offset 0
|
|
OpMemberDecorate %push_consts_type 1 Offset 16
|
|
OpMemberDecorate %push_consts_type 2 Offset 32
|
|
OpMemberDecorate %push_consts_type 3 Offset 48
|
|
OpMemberDecorate %push_consts_type 4 Offset 64
|
|
OpDecorate %push_consts_type Block
|
|
OpDecorate %textures1D DescriptorSet 1
|
|
OpDecorate %textures1D Binding 0
|
|
OpDecorate %textures2D DescriptorSet 1
|
|
OpDecorate %textures2D Binding 1
|
|
OpDecorate %textures3D DescriptorSet 1
|
|
OpDecorate %textures3D Binding 2
|
|
OpDecorate %textures4D DescriptorSet 1
|
|
OpDecorate %textures4D Binding 3
|
|
OpDecorate %in_interpolators Location 0
|
|
OpDecorate %oC Location 0
|
|
%void = OpTypeVoid
|
|
%3 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%uint = OpTypeInt 32 0
|
|
%10 = OpConstant %uint 512
|
|
%_arr_v4float_10 = OpTypeArray %v4float %10
|
|
%12 = OpConstant %uint 32
|
|
%_arr_uint_12 = OpTypeArray %uint %12
|
|
%14 = OpConstant %uint 8
|
|
%_arr_uint_14 = OpTypeArray %uint %14
|
|
%consts_type = OpTypeStruct %_arr_v4float_10 %_arr_uint_12 %_arr_uint_14
|
|
%_ptr_Uniform_consts_type = OpTypePointer Uniform %consts_type
|
|
%consts = OpVariable %_ptr_Uniform_consts_type Uniform
|
|
%push_consts_type = OpTypeStruct %v4float %v4float %v4float %v4float %uint
|
|
%_ptr_PushConstant_push_consts_type = OpTypePointer PushConstant %push_consts_type
|
|
%push_constants = OpVariable %_ptr_PushConstant_push_consts_type PushConstant
|
|
%22 = OpTypeImage %float 1D 0 0 0 1 Unknown
|
|
%23 = OpTypeSampledImage %22
|
|
%_arr_23_12 = OpTypeArray %23 %12
|
|
%_ptr_UniformConstant__arr_23_12 = OpTypePointer UniformConstant %_arr_23_12
|
|
%textures1D = OpVariable %_ptr_UniformConstant__arr_23_12 UniformConstant
|
|
%27 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
|
%28 = OpTypeSampledImage %27
|
|
%_arr_28_12 = OpTypeArray %28 %12
|
|
%_ptr_UniformConstant__arr_28_12 = OpTypePointer UniformConstant %_arr_28_12
|
|
%textures2D = OpVariable %_ptr_UniformConstant__arr_28_12 UniformConstant
|
|
%32 = OpTypeImage %float 3D 0 0 0 1 Unknown
|
|
%33 = OpTypeSampledImage %32
|
|
%_arr_33_12 = OpTypeArray %33 %12
|
|
%_ptr_UniformConstant__arr_33_12 = OpTypePointer UniformConstant %_arr_33_12
|
|
%textures3D = OpVariable %_ptr_UniformConstant__arr_33_12 UniformConstant
|
|
%37 = OpTypeImage %float Cube 0 0 0 1 Unknown
|
|
%38 = OpTypeSampledImage %37
|
|
%_arr_38_12 = OpTypeArray %38 %12
|
|
%_ptr_UniformConstant__arr_38_12 = OpTypePointer UniformConstant %_arr_38_12
|
|
%textures4D = OpVariable %_ptr_UniformConstant__arr_38_12 UniformConstant
|
|
%42 = OpConstant %uint 16
|
|
%_arr_v4float_42 = OpTypeArray %v4float %42
|
|
%44 = OpConstant %uint 1
|
|
%_arr__arr_v4float_42_44 = OpTypeArray %_arr_v4float_42 %44
|
|
%_ptr_Input__arr__arr_v4float_42_44 = OpTypePointer Input %_arr__arr_v4float_42_44
|
|
%in_interpolators = OpVariable %_ptr_Input__arr__arr_v4float_42_44 Input
|
|
%48 = OpConstant %uint 4
|
|
%_arr_v4float_48 = OpTypeArray %v4float %48
|
|
%_ptr_Output__arr_v4float_48 = OpTypePointer Output %_arr_v4float_48
|
|
%oC = OpVariable %_ptr_Output__arr_v4float_48 Output
|
|
%main = OpFunction %void None %3
|
|
%5 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|