git.s-ol.nu ~forks/DiligentCore / 5ff9757
Updated PSOCompatibility.IsCompatibleWith: texture and texture array are now compatible from resource signature point of view assiduous 6 months ago
1 changed file(s) with 7 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
281281
282282 TestingEnvironment::ScopedReset EnvironmentAutoReset;
283283
284 auto DevType = pDevice->GetDeviceCaps().DevType;
285 auto PSO0 = CreateGraphicsPSO(pEnv, VS0, PS0);
284 auto PSO0 = CreateGraphicsPSO(pEnv, VS0, PS0);
286285 ASSERT_TRUE(PSO0);
287286 EXPECT_TRUE(PSO0->IsCompatibleWith(PSO0));
288287 auto PSO0_1 = CreateGraphicsPSO(pEnv, VS0, PS0);
299298 ASSERT_TRUE(PSO_TexArr);
300299 ASSERT_TRUE(PSO_ArrOfTex);
301300 EXPECT_TRUE(PSO_Tex->IsCompatibleWith(PSO_Tex2));
302 if (DevType != RENDER_DEVICE_TYPE_D3D12 && DevType != RENDER_DEVICE_TYPE_VULKAN)
303 {
304 EXPECT_FALSE(PSO_Tex->IsCompatibleWith(PSO_TexArr));
305 }
301
302 // From resource signature point of view, texture and texture array are compatible
303 EXPECT_TRUE(PSO_Tex->IsCompatibleWith(PSO_TexArr));
304
306305 VERIFY_EXPR(!PSO_Tex->IsCompatibleWith(PSO_ArrOfTex));
307 if (DevType != RENDER_DEVICE_TYPE_D3D12 && DevType != RENDER_DEVICE_TYPE_VULKAN)
308 {
309 EXPECT_FALSE(PSO_Tex2->IsCompatibleWith(PSO_TexArr));
310 }
306 // From resource signature point of view, texture and texture array are compatible
307 EXPECT_TRUE(PSO_Tex2->IsCompatibleWith(PSO_TexArr));
311308 EXPECT_FALSE(PSO_Tex2->IsCompatibleWith(PSO_ArrOfTex));
312309 EXPECT_FALSE(PSO_TexArr->IsCompatibleWith(PSO_ArrOfTex));
313310