mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 12:15:43 +00:00
This patch fix a bug in DecomposeMemoryAccess, allowing access index 0 of a member in uniform and storage buffer being recognized as constant index. Bug: tint:1652 Change-Id: Ia428de17c860bdafe87c3af9e46426c74fe8fd68 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99480 Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com> Reviewed-by: Ben Clayton <bclayton@google.com> Auto-Submit: Zhaoming Jiang <zhaoming.jiang@intel.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
12 lines
153 B
HLSL
12 lines
153 B
HLSL
ByteAddressBuffer data : register(t1, space0);
|
|
|
|
int foo() {
|
|
return asint(data.Load(0u));
|
|
}
|
|
|
|
[numthreads(16, 16, 1)]
|
|
void main() {
|
|
foo();
|
|
return;
|
|
}
|