mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 16:45:56 +00:00
Dynamic indexes are limited to references to matrices and arrays https://github.com/gpuweb/gpuweb/pull/1801 Bug: tint:867 Change-Id: I114daa053c8a4ffd23ce784ac4538567a551cc21 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54701 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Sarah Mashayekhi <sarahmashay@google.com>
11 lines
180 B
Plaintext
11 lines
180 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void f() {
|
|
int i = 0;
|
|
int j = 0;
|
|
float2x2 m = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f));
|
|
float const f = m[i][j];
|
|
}
|
|
|