mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-23 11:19:40 +00:00
4218bbe746
Previously, spirv_type doesn't accept type specifier as its parameter. With this change, we can input non-array type specifier. This is because some SPIR-V type definition intructions often need to reference other SPIR-V types as its source operands. We add the support to facilitate such usage.
36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
spv.intrinsicsSpirvTypeWithTypeSpecifier.vert
|
|
// Module Version 10000
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 14
|
|
|
|
Capability Shader
|
|
Capability Int64
|
|
Capability PhysicalStorageBufferAddressesEXT
|
|
Extension "SPV_EXT_physical_storage_buffer"
|
|
Extension "SPV_KHR_physical_storage_buffer"
|
|
Extension "SPV_KHR_variable_pointers"
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel PhysicalStorageBuffer64EXT GLSL450
|
|
EntryPoint Vertex 4 "main"
|
|
Source GLSL 450
|
|
SourceExtension "GL_ARB_gpu_shader_int64"
|
|
SourceExtension "GL_EXT_buffer_reference"
|
|
SourceExtension "GL_EXT_spirv_intrinsics"
|
|
Name 4 "main"
|
|
Name 8 "value"
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 0
|
|
7: TypePointer Function 6(int)
|
|
9: TypeInt 64 0
|
|
10: 9(int64_t) Constant 1 0
|
|
11: TypePointer PhysicalStorageBufferEXT 6(int)
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
8(value): 7(ptr) Variable Function
|
|
12: 11(ptr) ConvertUToPtr 10
|
|
13: 6(int) Load 12 Aligned 32
|
|
Store 8(value) 13
|
|
Return
|
|
FunctionEnd
|