mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-27 16:49:39 +01:00
[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:
1 parent
c5d884fca8
commit
a730236b68
44 files changed
+2917
-2770
No files matched your search
@@ -50,11 +50,8 @@ void main()
|
||||
float2x2 cit1_ = float2x2((0.0).xx, (0.0).xx);
|
||||
int cit2_[4] = Constructarray4_int_(0, 1, 2, 3);
|
||||
bool ic0_ = bool((bool)0);
|
||||
int ic1_ = int((int)0);
|
||||
uint ic2_ = uint((uint)0);
|
||||
float ic3_ = float((float)0);
|
||||
uint2 ic4_ = uint2((uint2)0);
|
||||
float2x3 ic5_ = float2x3((float2x3)0);
|
||||
uint2 ic4_ = uint2(0u, 0u);
|
||||
float2x3 ic5_ = float2x3(float3(0.0, 0.0, 0.0), float3(0.0, 0.0, 0.0));
|
||||
uint2 ic6_ = asuint((uint2)0);
|
||||
float2x3 ic7_ = asfloat((float2x3)0);
|
||||
}
|
||||
Reference in new issue
Block a user