File tree 3 files changed +9
-3
lines changed
hlsl-intrinsic/byte-address-buffer
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1200,6 +1200,15 @@ Result linkAndOptimizeIR(
1200
1200
byteAddressBufferOptions.translateToStructuredBufferOps = false ;
1201
1201
byteAddressBufferOptions.lowerBasicTypeOps = true ;
1202
1202
break ;
1203
+ case CodeGenTarget::WGSL:
1204
+ case CodeGenTarget::WGSLSPIRV:
1205
+ case CodeGenTarget::WGSLSPIRVAssembly:
1206
+ byteAddressBufferOptions.scalarizeVectorLoadStore = true ;
1207
+ byteAddressBufferOptions.treatGetEquivalentStructuredBufferAsGetThis = true ;
1208
+ byteAddressBufferOptions.translateToStructuredBufferOps = false ;
1209
+ byteAddressBufferOptions.lowerBasicTypeOps = true ;
1210
+ byteAddressBufferOptions.useBitCastFromUInt = true ;
1211
+ break ;
1203
1212
}
1204
1213
1205
1214
// We also need to decide whether to translate
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ tests/autodiff/custom-intrinsic.slang.2 syn (wgpu)
12
12
tests/bugs/buffer-swizzle-store.slang.3 syn (wgpu)
13
13
tests/compute/interface-shader-param-in-struct.slang.4 syn (wgpu)
14
14
tests/compute/interface-shader-param.slang.5 syn (wgpu)
15
- tests/hlsl-intrinsic/byte-address-buffer/byte-address-struct.slang.5 syn (wgpu)
16
15
tests/language-feature/constants/static-const-in-generic-interface.slang.1 syn (wgpu)
17
16
tests/language-feature/enums/strongly-typed-id.slang.1 syn (wgpu)
18
17
tests/language-feature/generics/tuple.slang.1 syn (wgpu)
Original file line number Diff line number Diff line change 9
9
// TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -use-dxil -shaderobj
10
10
// TEST(compute, vulkan):COMPARE_COMPUTE_EX:-slang -vk -compute -shaderobj
11
11
// TEST(compute):COMPARE_COMPUTE_EX:-slang -cuda -compute -shaderobj
12
- // WGSL: Signed int initialized using unsigned int #5283
13
- // DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu
14
12
15
13
// Note: This input should really be just a `ByteAddressBuffer`,
16
14
// so that we can confirm that the functionality works in the
You can’t perform that action at this time.
0 commit comments