Test for extended UAV support in D3D11 test

This commit is contained in:
baldurk
2022-06-30 13:51:26 +01:00
parent 337704df1e
commit de619024c8
3 changed files with 7 additions and 0 deletions
@@ -705,6 +705,7 @@ float4 main(v2f IN) : SV_Target0
return read.b.wzwy;
}
#ifdef TYPED_UAV_EXT
if(IN.tri == 84)
{
return typedrwtest[uint(zero)].xyzw;
@@ -721,6 +722,7 @@ float4 main(v2f IN) : SV_Target0
{
return typedrwtest[uint(zero)].wzwy;
}
#endif
return float4(0.4f, 0.4f, 0.4f, 0.4f);
}
@@ -894,6 +896,9 @@ float4 main(v2f IN, uint samp : SV_SampleIndex) : SV_Target0
const uint32_t numTests = atoi(pixel.c_str() + lastTest) + 1;
if(opts2.TypedUAVLoadAdditionalFormats)
common += "\n#define TYPED_UAV_EXT 1\n";
ID3DBlobPtr vsblob = Compile(common + vertex, "main", "vs_5_0");
ID3DBlobPtr psblob = Compile(common + pixel, "main", "ps_5_0");
+1
View File
@@ -121,6 +121,7 @@ void D3D11GraphicsTest::Prepare(int argc, char **argv)
{
dev->CheckFeatureSupport(D3D11_FEATURE_D3D11_OPTIONS, &opts, sizeof(opts));
dev->CheckFeatureSupport(D3D11_FEATURE_D3D11_OPTIONS1, &opts1, sizeof(opts1));
dev->CheckFeatureSupport(D3D11_FEATURE_D3D11_OPTIONS2, &opts2, sizeof(opts2));
}
// This device was only used to get feature support. Set it back to NULL
+1
View File
@@ -179,6 +179,7 @@ struct D3D11GraphicsTest : public GraphicsTest
D3D11_FEATURE_DATA_D3D11_OPTIONS opts = {};
D3D11_FEATURE_DATA_D3D11_OPTIONS1 opts1 = {};
D3D11_FEATURE_DATA_D3D11_OPTIONS2 opts2 = {};
ID3D11DepthStencilStatePtr depthState;
ID3D11RasterizerStatePtr rastState;