mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 17:45:58 +00:00
Much like arrays, the SPIR-V writer cannot cope with dynamic indexing of matrices. Fixed: tint:825 Change-Id: Ia111f15e0cf6fbd441861a4b3455a33b82b692ab Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51781 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com>
13 lines
201 B
HLSL
13 lines
201 B
HLSL
void f() {
|
|
int i = 0;
|
|
int j = 0;
|
|
const float2x2 m = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f));
|
|
const float f = m[i][j];
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
|