

M_commandList->ResourceBarrier(1, &CD3DX12_RESOURCE_BARRIER::Transition(m_uavBuffer.Get(), D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE, D3D12_RESOURCE_STATE_UNORDERED_ACCESS)) There is also a single heap (two descriptors) which is related to the creation of the two buffers (this is omitted since the problem doesn't seem to be related as the SRV works fine without the UAV), but attention should be paid to the binding of the compute shader in the frame function: //Set compute shader to change the color of the UAV There is only a single root signature which has two tables, one for the SRV and one for the UAV. StructuredBuffer colorBuffer : register(t0) // SRV lor = float4(0.f, 1.f, 0.f, 1.f) Īnd in the pixel shader we have struct Color Set the structured buffer to a green color Void main(uint3 DispatchThreadID : SV_DispatchThreadID) RWStructuredBuffer OutputBuffer : register(u0) The compute shader looks like: struct Color This UAV data should then be passed to an SRV in a pixel shader which should then output this color. Index of display output to target with testĪdditional command line arguments for test executableĬustom Command Line for ConfigDisplay.I'm working with a basic compute shader which only task is to modify the input color of an UAV. \nttest\windowstest\graphics\d3d\utility\ \nttest\windowstest\graphics\d3d\support\ Pshader3.exe -ps30 -ps30_tex -ps30_cube -ps30_vol -M: įor command line help for this test binary, type /?. Runs the Pixel Shaders Ver 3.0 (WoW64) test job. More information Command syntax Command option Troubleshootingįor generic troubleshooting of HLK test failures, see Troubleshooting Windows HLK Test Failures.įor troubleshooting information, see Troubleshooting Device.Graphics Testing.

Device.Graphics additional documentationīefore you run the test, complete the test setup as described in the test requirements: Graphic Adapter or Chipset Testing Prerequisites.Tests in this feature area might have additional documentation, including prerequisites, setup, and troubleshooting information, that can be found in the following topic(s): This topic applies to the following test jobs: This automated test verifies the requirements listed in the test details table.
