diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-12 03:44:01 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-12 03:44:01 +0000 |
| commit | 71cc1dc3f1c32c9d30a38dee0a1d0414f154f258 (patch) | |
| tree | a61aedaa089a38bd30c339be958eadc95896bfcf /Tests/TestApp/assets/BlendStateTest.lua | |
| parent | Updated Asteroids and aubmodules (diff) | |
| download | DiligentEngine-71cc1dc3f1c32c9d30a38dee0a1d0414f154f258.tar.gz DiligentEngine-71cc1dc3f1c32c9d30a38dee0a1d0414f154f258.zip | |
Implemened PSO compatibility: updated tests and submodules
Diffstat (limited to 'Tests/TestApp/assets/BlendStateTest.lua')
| -rw-r--r-- | Tests/TestApp/assets/BlendStateTest.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/TestApp/assets/BlendStateTest.lua b/Tests/TestApp/assets/BlendStateTest.lua index 4504ff9..5b53ce6 100644 --- a/Tests/TestApp/assets/BlendStateTest.lua +++ b/Tests/TestApp/assets/BlendStateTest.lua @@ -195,6 +195,8 @@ for rt = 1, 4 do RT.DestBlend = v PSODesc.GraphicsPipeline.BlendDesc = BSDesc local TestPSO = PipelineState.Create(PSODesc) + assert(TestPSO:IsCompatibleWith(PSO_TestBlendState) == true) + assert(PSO_TestBlendState:IsCompatibleWith(TestPSO) == true) assert(TestPSO.GraphicsPipeline.BlendDesc.RenderTargets[rt].SrcBlend == v) assert(TestPSO.GraphicsPipeline.BlendDesc.RenderTargets[rt].DestBlend == v) Context.SetPipelineState(TestPSO) @@ -205,6 +207,8 @@ for rt = 1, 4 do RT.DestBlendAlpha = v PSODesc.GraphicsPipeline.BlendDesc = BSDesc local TestPSO = PipelineState.Create(PSODesc) + assert(TestPSO:IsCompatibleWith(PSO_TestBlendState) == true) + assert(PSO_TestBlendState:IsCompatibleWith(TestPSO) == true) assert(TestPSO.GraphicsPipeline.BlendDesc.RenderTargets[rt].SrcBlendAlpha == v) assert(TestPSO.GraphicsPipeline.BlendDesc.RenderTargets[rt].DestBlendAlpha == v) Context.SetPipelineState(TestPSO) @@ -219,6 +223,8 @@ for rt = 1, 4 do RT.BlendOpAlpha = v PSODesc.GraphicsPipeline.BlendDesc = BSDesc local TestPSO = PipelineState.Create(PSODesc) + assert(TestPSO:IsCompatibleWith(PSO_TestBlendState) == true) + assert(PSO_TestBlendState:IsCompatibleWith(TestPSO) == true) assert(TestPSO.GraphicsPipeline.BlendDesc.RenderTargets[rt].BlendOp == v) assert(TestPSO.GraphicsPipeline.BlendDesc.RenderTargets[rt].BlendOpAlpha == v) Context.SetPipelineState(TestPSO) |
