DebugUAVSize.hlsl 457 B

12345678910111213
  1. // RUN: %dxc -Emain -Tps_6_0 %s | %opt -S -hlsl-dxil-debug-instrumentation,UAVSize=100000 | %FileCheck %s
  2. // Check that the UAV size is reflected in the instrumentation. (Should be passed-in size - 64k)
  3. // (The offset here is the "dumping ground" for non-interesting invocations)
  4. // 100,000 - 65.536 = 34,464
  5. // CHECK: %OffsetAddend = mul i32 34464, %ComplementOfMultiplicand
  6. [RootSignature("")]
  7. float4 main() : SV_Target {
  8. return float4(0,0,0,0);
  9. }