yum-mirror/glslang

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

GinShioMiss spv extension for derivative functions with float1618e195b9

main
2.7 KiB55 linesraw
1spv.derivative.float16.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 24
5
6                              Capability Shader
7                              Capability Float16
8                              Capability StorageUniformBufferBlock16
9                              Extension  "SPV_AMD_gpu_shader_half_float"
10                              Extension  "SPV_KHR_16bit_storage"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint Fragment 4  "main"
14                              ExecutionMode 4 OriginUpperLeft
15                              Source GLSL 450
16                              SourceExtension  "GL_AMD_gpu_shader_half_float"
17                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
18                              Name 4  "main"
19                              Name 8  "SSBO"
20                              MemberName 8(SSBO) 0  "coords2D"
21                              MemberName 8(SSBO) 1  "gradX"
22                              MemberName 8(SSBO) 2  "gradY"
23                              Name 10  ""
24                              Decorate 8(SSBO) BufferBlock
25                              MemberDecorate 8(SSBO) 0 Offset 0
26                              MemberDecorate 8(SSBO) 1 Offset 4
27                              MemberDecorate 8(SSBO) 2 Offset 8
28                              Decorate 10 Binding 0
29                              Decorate 10 DescriptorSet 0
30               2:             TypeVoid
31               3:             TypeFunction 2
32               6:             TypeFloat 16
33               7:             TypeVector 6(float16_t) 2
34         8(SSBO):             TypeStruct 7(f16vec2) 7(f16vec2) 7(f16vec2)
35               9:             TypePointer Uniform 8(SSBO)
36              10:      9(ptr) Variable Uniform
37              11:             TypeInt 32 1
38              12:     11(int) Constant 1
39              13:     11(int) Constant 0
40              14:             TypePointer Uniform 7(f16vec2)
41              19:     11(int) Constant 2
42         4(main):           2 Function None 3
43               5:             Label
44              15:     14(ptr) AccessChain 10 13
45              16:  7(f16vec2) Load 15
46              17:  7(f16vec2) DPdx 16
47              18:     14(ptr) AccessChain 10 12
48                              Store 18 17
49              20:     14(ptr) AccessChain 10 13
50              21:  7(f16vec2) Load 20
51              22:  7(f16vec2) DPdy 21
52              23:     14(ptr) AccessChain 10 19
53                              Store 23 22
54                              Return
55                              FunctionEnd