mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Add test of solo numbered semantics to linkage zoo tests
This commit is contained in:
@@ -222,6 +222,17 @@ float4 main(v2f IN) : SV_Target0
|
||||
tests.push_back(BuildTestCase({{false, VarType::UInt, 4, 0, "TEXCOORD0", false}}));
|
||||
tests.push_back(BuildTestCase({{true, VarType::UInt, 4, 0, "TEXCOORD0", true}}));
|
||||
|
||||
// test semantics with indices that don't start from 0
|
||||
tests.push_back(BuildTestCase({{false, VarType::Float, 1, 0, "TEXCOORD1", true}}));
|
||||
tests.push_back(BuildTestCase({{true, VarType::Float, 1, 0, "TEXCOORD1", true}}));
|
||||
tests.push_back(BuildTestCase({{false, VarType::UInt, 1, 0, "TEXCOORD1", true}}));
|
||||
tests.push_back(BuildTestCase({{false, VarType::UInt, 4, 0, "TEXCOORD1", true}}));
|
||||
|
||||
tests.push_back(BuildTestCase({{false, VarType::Float, 1, 0, "TEXCOORD2", true}}));
|
||||
tests.push_back(BuildTestCase({{true, VarType::Float, 1, 0, "TEXCOORD2", true}}));
|
||||
tests.push_back(BuildTestCase({{false, VarType::UInt, 1, 0, "TEXCOORD2", true}}));
|
||||
tests.push_back(BuildTestCase({{false, VarType::UInt, 4, 0, "TEXCOORD2", true}}));
|
||||
|
||||
// A single semantic with various array sizes
|
||||
tests.push_back(BuildTestCase({{false, VarType::Float, 1, 1, "TEXCOORD0", true}}));
|
||||
tests.push_back(BuildTestCase({{false, VarType::Float, 1, 2, "TEXCOORD0", true}}));
|
||||
|
||||
@@ -208,6 +208,17 @@ float4 main(v2f IN) : SV_Target0
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::UInt, 4, 0, "TEXCOORD0", false}}));
|
||||
psos.push_back(BuildPSO(sig, {{true, VarType::UInt, 4, 0, "TEXCOORD0", true}}));
|
||||
|
||||
// test semantics with indices that don't start from 0
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::Float, 1, 0, "TEXCOORD1", true}}));
|
||||
psos.push_back(BuildPSO(sig, {{true, VarType::Float, 1, 0, "TEXCOORD1", true}}));
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::UInt, 1, 0, "TEXCOORD1", true}}));
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::UInt, 4, 0, "TEXCOORD1", true}}));
|
||||
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::Float, 1, 0, "TEXCOORD2", true}}));
|
||||
psos.push_back(BuildPSO(sig, {{true, VarType::Float, 1, 0, "TEXCOORD2", true}}));
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::UInt, 1, 0, "TEXCOORD2", true}}));
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::UInt, 4, 0, "TEXCOORD2", true}}));
|
||||
|
||||
// A single semantic with various array sizes
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::Float, 1, 1, "TEXCOORD0", true}}));
|
||||
psos.push_back(BuildPSO(sig, {{false, VarType::Float, 1, 2, "TEXCOORD0", true}}));
|
||||
|
||||
@@ -13,11 +13,11 @@ class D3D12_Shader_Linkage_Zoo(rdtest.TestCase):
|
||||
|
||||
failed = False
|
||||
|
||||
test_marker: rd.ActionDescription = self.find_action("action")
|
||||
test_marker: rd.ActionDescription = self.find_action("draw")
|
||||
while test_marker is not None:
|
||||
action = test_marker.next
|
||||
event_name = test_marker.customName
|
||||
test_marker: rd.ActionDescription = self.find_action("action", action.eventId)
|
||||
test_marker: rd.ActionDescription = self.find_action("draw", action.eventId)
|
||||
|
||||
self.controller.SetFrameEvent(action.eventId, False)
|
||||
pipe: rd.PipeState = self.controller.GetPipelineState()
|
||||
|
||||
Reference in New Issue
Block a user