yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

janharaldUpdate compute shader derivative rules such that texture operations with implicit derivatives can be used without the extensions (and fall back to LoD 0).19808a89

main
4.3 KiB83 linesraw
1spv.es320.texture.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 44
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint GLCompute 4  "main" 34
10                              ExecutionMode 4 LocalSize 3 3 1
11                              Source ESSL 320
12                              Name 4  "main"
13                              Name 9  "v"
14                              Name 13  "inTex"
15                              Name 16  "PCBlock"
16                              MemberName 16(PCBlock) 0  "coords"
17                              MemberName 16(PCBlock) 1  "size"
18                              MemberName 16(PCBlock) 2  "lod"
19                              Name 18  "pc"
20                              Name 29  "outColor"
21                              Name 34  "gl_LocalInvocationID"
22                              Decorate 13(inTex) RelaxedPrecision
23                              Decorate 13(inTex) Binding 1
24                              Decorate 13(inTex) DescriptorSet 0
25                              Decorate 14 RelaxedPrecision
26                              Decorate 16(PCBlock) Block
27                              MemberDecorate 16(PCBlock) 0 Offset 0
28                              MemberDecorate 16(PCBlock) 1 Offset 16
29                              MemberDecorate 16(PCBlock) 2 Offset 24
30                              Decorate 26 RelaxedPrecision
31                              Decorate 29(outColor) RelaxedPrecision
32                              Decorate 29(outColor) NonReadable
33                              Decorate 29(outColor) Binding 2
34                              Decorate 29(outColor) DescriptorSet 0
35                              Decorate 30 RelaxedPrecision
36                              Decorate 34(gl_LocalInvocationID) BuiltIn LocalInvocationId
37                              Decorate 43 BuiltIn WorkgroupSize
38               2:             TypeVoid
39               3:             TypeFunction 2
40               6:             TypeFloat 32
41               7:             TypeVector 6(float) 4
42               8:             TypePointer Function 7(fvec4)
43              10:             TypeImage 6(float) 2D sampled format:Unknown
44              11:             TypeSampledImage 10
45              12:             TypePointer UniformConstant 11
46       13(inTex):     12(ptr) Variable UniformConstant
47              15:             TypeVector 6(float) 2
48     16(PCBlock):             TypeStruct 7(fvec4) 15(fvec2) 6(float)
49              17:             TypePointer PushConstant 16(PCBlock)
50          18(pc):     17(ptr) Variable PushConstant
51              19:             TypeInt 32 1
52              20:     19(int) Constant 0
53              21:             TypePointer PushConstant 7(fvec4)
54              25:    6(float) Constant 0
55              27:             TypeImage 6(float) 2D nonsampled format:Rgba8
56              28:             TypePointer UniformConstant 27
57    29(outColor):     28(ptr) Variable UniformConstant
58              31:             TypeInt 32 0
59              32:             TypeVector 31(int) 3
60              33:             TypePointer Input 32(ivec3)
6134(gl_LocalInvocationID):     33(ptr) Variable Input
62              35:             TypeVector 31(int) 2
63              38:             TypeVector 19(int) 2
64              41:     31(int) Constant 3
65              42:     31(int) Constant 1
66              43:   32(ivec3) ConstantComposite 41 41 42
67         4(main):           2 Function None 3
68               5:             Label
69            9(v):      8(ptr) Variable Function
70              14:          11 Load 13(inTex)
71              22:     21(ptr) AccessChain 18(pc) 20
72              23:    7(fvec4) Load 22
73              24:   15(fvec2) VectorShuffle 23 23 0 1
74              26:    7(fvec4) ImageSampleExplicitLod 14 24 Lod 25
75                              Store 9(v) 26
76              30:          27 Load 29(outColor)
77              36:   32(ivec3) Load 34(gl_LocalInvocationID)
78              37:   35(ivec2) VectorShuffle 36 36 0 1
79              39:   38(ivec2) Bitcast 37
80              40:    7(fvec4) Load 9(v)
81                              ImageWrite 30 39 40
82                              Return
83                              FunctionEnd