When using this qualifier for a parameter, we make it as a pointer. However, the function TranslateStorageClass() is therefore called and the storage class should only be set to Function when it is invoked to translate parameter types rather than actual argument types.
30 lines
1.4 KiB
Text
30 lines
1.4 KiB
Text
spv.intrinsicsSpirvLiteral.vert
|
|
// Module Version 10000
|
|
// Generated by (magic number): 8000a
|
|
// Id's are bound by 13
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 9 11
|
|
Source GLSL 450
|
|
SourceExtension "GL_EXT_spirv_intrinsics"
|
|
Name 4 "main"
|
|
Name 9 "vec4Out"
|
|
Name 11 "vec4In"
|
|
Decorate 9(vec4Out) Location 1
|
|
Decorate 11(vec4In) Location 0
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeFloat 32
|
|
7: TypeVector 6(float) 4
|
|
8: TypePointer Output 7(fvec4)
|
|
9(vec4Out): 8(ptr) Variable Output
|
|
10: TypePointer Input 7(fvec4)
|
|
11(vec4In): 10(ptr) Variable Input
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
12: 7(fvec4) Load 11(vec4In) None
|
|
Store 9(vec4Out) 12 Volatile
|
|
Return
|
|
FunctionEnd
|