mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	This CL make transform AddBlockAttribute always try to wrap types used by buffer variables into a struct, in order to generate valid GLSL code for assigning one buffer struct variable to another buffer struct variable. Fixed: tint:1735 Change-Id: I009d8a9ca7ecea1dc0ad6164275c964a18acb33f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108023 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; SPIR-V
 | |
| ; Version: 1.3
 | |
| ; Generator: Google Tint Compiler; 0
 | |
| ; Bound: 10
 | |
| ; Schema: 0
 | |
|                OpCapability Shader
 | |
|                OpMemoryModel Logical GLSL450
 | |
|                OpEntryPoint GLCompute %main "main"
 | |
|                OpExecutionMode %main LocalSize 1 1 1
 | |
|                OpName %u_block "u_block"
 | |
|                OpMemberName %u_block 0 "inner"
 | |
|                OpName %S "S"
 | |
|                OpMemberName %S 0 "i"
 | |
|                OpName %u "u"
 | |
|                OpName %main "main"
 | |
|                OpDecorate %u_block Block
 | |
|                OpMemberDecorate %u_block 0 Offset 0
 | |
|                OpMemberDecorate %S 0 Offset 0
 | |
|                OpDecorate %u NonWritable
 | |
|                OpDecorate %u Binding 0
 | |
|                OpDecorate %u DescriptorSet 0
 | |
|         %int = OpTypeInt 32 1
 | |
|           %S = OpTypeStruct %int
 | |
|     %u_block = OpTypeStruct %S
 | |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
 | |
|           %u = OpVariable %_ptr_Uniform_u_block Uniform
 | |
|        %void = OpTypeVoid
 | |
|           %6 = OpTypeFunction %void
 | |
|        %main = OpFunction %void None %6
 | |
|           %9 = OpLabel
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |