dawn-cmake/test/array
Ben Clayton 165512c57e writer/hlsl: Emit UBO as an array of vector
Instead of a ConstantBuffer.

HLSL requires that each structure field in a UBO is 16 byte aligned.
WGSL has much looser constraints with its UBO field alignment rules.

Instead generate an array of uint4 vectors, and index into this, much
like we index into [RW]ByteAddressBuffers for SSBOs.

Extend the DecomposeStorageAccess transform to support uniforms too.
This has been renamed to DecomposeMemoryAccess.

Change-Id: I3868ff80af1ab3b3dddfbf5b969724cb87ef0744
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55246
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-06-18 21:15:25 +00:00
..
assign_to_function_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_function_var.wgsl.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
assign_to_function_var.wgsl.expected.msl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
assign_to_function_var.wgsl.expected.spvasm Add optional access to ptr<> 2021-06-04 22:17:37 +00:00
assign_to_function_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_private_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_private_var.wgsl.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
assign_to_private_var.wgsl.expected.msl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
assign_to_private_var.wgsl.expected.spvasm Add optional access to ptr<> 2021-06-04 22:17:37 +00:00
assign_to_private_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_storage_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_storage_var.wgsl.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
assign_to_storage_var.wgsl.expected.msl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
assign_to_storage_var.wgsl.expected.spvasm Add optional access to ptr<> 2021-06-04 22:17:37 +00:00
assign_to_storage_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_subexpr.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_subexpr.wgsl.expected.hlsl writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
assign_to_subexpr.wgsl.expected.msl transform/msl: Run InlinePointerLets and Simplify 2021-06-18 09:47:23 +00:00
assign_to_subexpr.wgsl.expected.spvasm transform/spirv: Use InlinePointerLets & Simplify 2021-06-10 17:34:44 +00:00
assign_to_subexpr.wgsl.expected.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_workgroup_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_workgroup_var.wgsl.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
assign_to_workgroup_var.wgsl.expected.msl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
assign_to_workgroup_var.wgsl.expected.spvasm Add optional access to ptr<> 2021-06-04 22:17:37 +00:00
assign_to_workgroup_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
function_parameter.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_parameter.wgsl.expected.hlsl writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
function_parameter.wgsl.expected.msl Add transform/WrapArraysInStructs 2021-06-16 09:19:36 +00:00
function_parameter.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_parameter.wgsl.expected.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl.expected.hlsl writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
function_return_type.wgsl.expected.msl Add transform/WrapArraysInStructs 2021-06-16 09:19:36 +00:00
function_return_type.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl.expected.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
type_constructor.wgsl writer/msl: Hoist array and struct initializers 2021-06-01 12:08:20 +00:00
type_constructor.wgsl.expected.hlsl writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
type_constructor.wgsl.expected.msl Add transform/WrapArraysInStructs 2021-06-16 09:19:36 +00:00
type_constructor.wgsl.expected.spvasm writer/msl: Hoist array and struct initializers 2021-06-01 12:08:20 +00:00
type_constructor.wgsl.expected.wgsl writer/msl: Hoist array and struct initializers 2021-06-01 12:08:20 +00:00