mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	These operators are not defined in the metal namespace when the vector operands are packed. Fixed: tint:1121 Change-Id: I2e8f4302e08117ca41bac6c05fb24a70d1215740 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/62480 Kokoro: Kokoro <noreply+kokoro@google.com> Auto-Submit: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; SPIR-V
 | |
| ; Version: 1.3
 | |
| ; Generator: Google Tint Compiler; 0
 | |
| ; Bound: 22
 | |
| ; Schema: 0
 | |
|                OpCapability Shader
 | |
|                OpMemoryModel Logical GLSL450
 | |
|                OpEntryPoint Fragment %main "main"
 | |
|                OpExecutionMode %main OriginUpperLeft
 | |
|                OpName %S "S"
 | |
|                OpMemberName %S 0 "matrix"
 | |
|                OpMemberName %S 1 "vector"
 | |
|                OpName %data "data"
 | |
|                OpName %main "main"
 | |
|                OpDecorate %S Block
 | |
|                OpMemberDecorate %S 0 Offset 0
 | |
|                OpMemberDecorate %S 0 ColMajor
 | |
|                OpMemberDecorate %S 0 MatrixStride 16
 | |
|                OpMemberDecorate %S 1 Offset 64
 | |
|                OpDecorate %data NonWritable
 | |
|                OpDecorate %data DescriptorSet 0
 | |
|                OpDecorate %data Binding 0
 | |
|       %float = OpTypeFloat 32
 | |
|     %v3float = OpTypeVector %float 3
 | |
| %mat4v3float = OpTypeMatrix %v3float 4
 | |
|           %S = OpTypeStruct %mat4v3float %v3float
 | |
| %_ptr_Uniform_S = OpTypePointer Uniform %S
 | |
|        %data = OpVariable %_ptr_Uniform_S Uniform
 | |
|        %void = OpTypeVoid
 | |
|           %7 = OpTypeFunction %void
 | |
|        %uint = OpTypeInt 32 0
 | |
|      %uint_1 = OpConstant %uint 1
 | |
| %_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
 | |
|      %uint_0 = OpConstant %uint 0
 | |
| %_ptr_Uniform_mat4v3float = OpTypePointer Uniform %mat4v3float
 | |
|     %v4float = OpTypeVector %float 4
 | |
|        %main = OpFunction %void None %7
 | |
|          %10 = OpLabel
 | |
|          %14 = OpAccessChain %_ptr_Uniform_v3float %data %uint_1
 | |
|          %15 = OpLoad %v3float %14
 | |
|          %18 = OpAccessChain %_ptr_Uniform_mat4v3float %data %uint_0
 | |
|          %19 = OpLoad %mat4v3float %18
 | |
|          %20 = OpVectorTimesMatrix %v4float %15 %19
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |