mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-28 10:11:33 +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>
20 lines
727 B
GLSL
20 lines
727 B
GLSL
SKIP: FAILED
|
|
|
|
expressions/binary/mul/vec3-mat4x3/f16.wgsl:3:14 error: using f16 types in 'uniform' storage class is not implemented yet
|
|
matrix : mat4x3<f16>,
|
|
^^^^^^^^^^^
|
|
|
|
expressions/binary/mul/vec3-mat4x3/f16.wgsl:2:1 note: see layout of struct:
|
|
/* align(8) size(40) */ struct S {
|
|
/* offset( 0) align(8) size(32) */ matrix : mat4x3<f16>;
|
|
/* offset(32) align(8) size( 6) */ vector : vec3<f16>;
|
|
/* offset(38) align(1) size( 2) */ // -- implicit struct size padding --;
|
|
/* */ };
|
|
struct S {
|
|
^^^^^^
|
|
|
|
expressions/binary/mul/vec3-mat4x3/f16.wgsl:6:36 note: see declaration of variable
|
|
@group(0) @binding(0) var<uniform> data: S;
|
|
^^^^
|
|
|