mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Modify the AddSpirvBlockAttribute transform to fix top-level structure access of uniform, storage and push-constant buffers for use in the GLSL backend. The small change to the transform makes the transform wrap host-sharable buffers, if they're also used as a non-host-sharable structure. Also rename the transform to AddBlockAttrbibute in order to reflect its wider applicability. Change-Id: Ib2bf4ebf6bce72790791dbae9387032be765e4b9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101061 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
21 lines
807 B
GLSL
21 lines
807 B
GLSL
SKIP: FAILED
|
|
|
|
expressions/binary/mul/mat3x2-vec3/f16.wgsl:3:14 error: using f16 types in 'uniform' storage class is not implemented yet
|
|
matrix : mat3x2<f16>,
|
|
^^^^^^^^^^^
|
|
|
|
expressions/binary/mul/mat3x2-vec3/f16.wgsl:2:1 note: see layout of struct:
|
|
/* align(8) size(24) */ struct S {
|
|
/* offset( 0) align(4) size(12) */ matrix : mat3x2<f16>;
|
|
/* offset(12) align(1) size( 4) */ // -- implicit field alignment padding --;
|
|
/* offset(16) align(8) size( 6) */ vector : vec3<f16>;
|
|
/* offset(22) align(1) size( 2) */ // -- implicit struct size padding --;
|
|
/* */ };
|
|
struct S {
|
|
^^^^^^
|
|
|
|
expressions/binary/mul/mat3x2-vec3/f16.wgsl:6:36 note: see declaration of variable
|
|
@group(0) @binding(0) var<uniform> data: S;
|
|
^^^^
|
|
|