diff --git a/test/types/function_scope_declarations.wgsl.expected.hlsl b/test/types/function_scope_declarations.wgsl.expected.hlsl index b3db42f63d..9a301a100a 100644 --- a/test/types/function_scope_declarations.wgsl.expected.hlsl +++ b/test/types/function_scope_declarations.wgsl.expected.hlsl @@ -1 +1,28 @@ -SKIP: Failed to generate: error: pointers not supported in HLSL +struct S { +}; + +[numthreads(1, 1, 1)] +void main() { + bool bool_var = false; + const bool bool_let = false; + int i32_var = 0; + const int i32_let = 0; + uint u32_var = 0u; + const uint u32_let = 0u; + float f32_var = 0.0f; + const float f32_let = 0.0f; + int2 v2i32_var = int2(0, 0); + const int2 v2i32_let = int2(0, 0); + uint3 v3u32_var = uint3(0u, 0u, 0u); + const uint3 v3u32_let = uint3(0u, 0u, 0u); + float4 v4f32_var = float4(0.0f, 0.0f, 0.0f, 0.0f); + const float4 v4f32_let = float4(0.0f, 0.0f, 0.0f, 0.0f); + float2x3 m2x3_var = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + const float3x4 m3x4_let = float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float arr_var[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + const float arr_let[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + S struct_var = {}; + const S struct_let = {}; + return; +} + diff --git a/test/types/parameters.wgsl.expected.hlsl b/test/types/parameters.wgsl.expected.hlsl index b3db42f63d..0780cf110b 100644 --- a/test/types/parameters.wgsl.expected.hlsl +++ b/test/types/parameters.wgsl.expected.hlsl @@ -1 +1,11 @@ -SKIP: Failed to generate: error: pointers not supported in HLSL +struct S { +}; + +void foo(bool param_bool, int param_i32, uint param_u32, float param_f32, int2 param_v2i32, uint3 param_v3u32, float4 param_v4f32, float2x3 param_m2x3, float param_arr[4], S param_struct, inout float param_ptr_f32, inout float4 param_ptr_vec, inout float param_ptr_arr[4]) { +} + +[numthreads(1, 1, 1)] +void main() { + return; +} +