[wgsl-in] eagerly evaluate const-expressions

[wgsl-in] support const-expressions in attributes

allow `Splat` as an evaluated const-expression type
This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2023-10-12 13:13:26 +02:00
1 parent c5d884fca8
commit a730236b68
44 files changed
+2917 -2770

No files matched your search

+6 -3
View File
@@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 74
; Bound: 73
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
@@ -78,7 +78,10 @@ OpStore %43 %52
%63 = OpCompositeConstruct %9 %21 %21
%64 = OpCompositeConstruct %8 %62 %63
%65 = OpCompositeConstruct %17 %38 %39 %40 %41
%71 = OpCopyObject %20 %49
%73 = OpCopyObject %20 %49
%67 = OpCompositeConstruct %14 %48 %48
%68 = OpCompositeConstruct %7 %21 %21 %21
%69 = OpCompositeConstruct %7 %21 %21 %21
%70 = OpCompositeConstruct %20 %68 %69
%72 = OpCopyObject %20 %49
OpReturn
OpFunctionEnd