 4bfbf62794
			
		
	
	
		4bfbf62794
		
	
	
	
	
		
			
			Uses SPV_KHR_workgroup_memory_explicit_layout. Note that if GL_EXT_scalar_block_layout is enabled, Workgroup blocks can also use scalar layout.
		
			
				
	
	
		
			46 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| spv.WorkgroupMemoryExplicitLayout.8BitAccess.comp
 | |
| // Module Version 10400
 | |
| // Generated by (magic number): 8000a
 | |
| // Id's are bound by 20
 | |
| 
 | |
|                               Capability Shader
 | |
|                               Capability Int8
 | |
|                               Capability CapabilityWorkgroupMemoryExplicitLayoutKHR
 | |
|                               Capability CapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR
 | |
|                               Extension  "SPV_KHR_workgroup_memory_explicit_layout"
 | |
|                1:             ExtInstImport  "GLSL.std.450"
 | |
|                               MemoryModel Logical GLSL450
 | |
|                               EntryPoint GLCompute 4  "main" 9
 | |
|                               ExecutionMode 4 LocalSize 2 1 1
 | |
|                               Source GLSL 430
 | |
|                               SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
 | |
|                               SourceExtension  "GL_EXT_shared_memory_block"
 | |
|                               Name 4  "main"
 | |
|                               Name 7  "first"
 | |
|                               MemberName 7(first) 0  "a"
 | |
|                               Name 9  ""
 | |
|                               MemberDecorate 7(first) 0 Offset 0
 | |
|                               Decorate 7(first) Block
 | |
|                               Decorate 19 BuiltIn WorkgroupSize
 | |
|                2:             TypeVoid
 | |
|                3:             TypeFunction 2
 | |
|                6:             TypeInt 8 1
 | |
|         7(first):             TypeStruct 6(int8_t)
 | |
|                8:             TypePointer Workgroup 7(first)
 | |
|                9:      8(ptr) Variable Workgroup
 | |
|               10:             TypeInt 32 1
 | |
|               11:     10(int) Constant 0
 | |
|               12:   6(int8_t) Constant 2
 | |
|               13:             TypePointer Workgroup 6(int8_t)
 | |
|               15:             TypeInt 32 0
 | |
|               16:             TypeVector 15(int) 3
 | |
|               17:     15(int) Constant 2
 | |
|               18:     15(int) Constant 1
 | |
|               19:   16(ivec3) ConstantComposite 17 18 18
 | |
|          4(main):           2 Function None 3
 | |
|                5:             Label
 | |
|               14:     13(ptr) AccessChain 9 11
 | |
|                               Store 14 12
 | |
|                               Return
 | |
|                               FunctionEnd
 |