mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Fix typo in name of evaluate function
This commit is contained in:
@@ -492,7 +492,7 @@ class TestCase:
|
||||
|
||||
return self.find_source_var(trace.sourceVars, sig_index, rd.DebugVariableType.Variable)
|
||||
|
||||
def evalute_source_var(self, sourceVar: rd.SourceVariableMapping, debugVars):
|
||||
def evaluate_source_var(self, sourceVar: rd.SourceVariableMapping, debugVars):
|
||||
debugged = rd.ShaderVariable()
|
||||
debugged.name = sourceVar.name
|
||||
debugged.type = sourceVar.type
|
||||
|
||||
@@ -49,7 +49,7 @@ class D3D11_CBuffer_Zoo(rdtest.TestCase):
|
||||
if sourceVar.variables[0].name not in debugVars.keys():
|
||||
continue
|
||||
|
||||
eval: rd.ShaderVariable = self.evalute_source_var(sourceVar, debugVars)
|
||||
eval: rd.ShaderVariable = self.evaluate_source_var(sourceVar, debugVars)
|
||||
cbufferVars.append(eval)
|
||||
|
||||
cbufferVars = self.combine_source_vars(cbufferVars)
|
||||
|
||||
@@ -36,7 +36,7 @@ class D3D11_PrimitiveID(rdtest.TestCase):
|
||||
# since we're testing overlapping primitives in a single draw
|
||||
if expected_output is not None:
|
||||
output = self.find_output_source_var(trace, rd.ShaderBuiltin.ColorOutput, 0)
|
||||
debugged = self.evalute_source_var(output, variables)
|
||||
debugged = self.evaluate_source_var(output, variables)
|
||||
if debugged.value.fv[0:4] != expected_output:
|
||||
rdtest.log.error("Expected value {} at {},{} did not match actual {}.".format(
|
||||
expected_output, x, y, debugged.value.fv[0:4]))
|
||||
|
||||
@@ -26,7 +26,7 @@ class D3D11_Shader_Debug_Zoo(rdtest.TestCase):
|
||||
|
||||
output = self.find_output_source_var(trace, rd.ShaderBuiltin.ColorOutput, 0)
|
||||
|
||||
debugged = self.evalute_source_var(output, variables)
|
||||
debugged = self.evaluate_source_var(output, variables)
|
||||
|
||||
try:
|
||||
self.check_pixel_value(pipe.GetOutputTargets()[0].resourceId, 4 * test, 0, debugged.value.fv[0:4], 0.0)
|
||||
|
||||
@@ -87,7 +87,7 @@ class D3D12_CBuffer_Zoo(rdtest.TestCase):
|
||||
if sourceVar.variables[0].name not in debugVars.keys():
|
||||
continue
|
||||
|
||||
eval: rd.ShaderVariable = self.evalute_source_var(sourceVar, debugVars)
|
||||
eval: rd.ShaderVariable = self.evaluate_source_var(sourceVar, debugVars)
|
||||
cbufferVars.append(eval)
|
||||
|
||||
cbufferVars = self.combine_source_vars(cbufferVars)
|
||||
|
||||
@@ -38,7 +38,7 @@ class D3D12_PrimitiveID(rdtest.TestCase):
|
||||
# since we're testing overlapping primitives in a single draw
|
||||
if expected_output is not None:
|
||||
output = self.find_output_source_var(trace, rd.ShaderBuiltin.ColorOutput, 0)
|
||||
debugged = self.evalute_source_var(output, variables)
|
||||
debugged = self.evaluate_source_var(output, variables)
|
||||
if debugged.value.fv[0:4] != expected_output:
|
||||
rdtest.log.error("Expected value {} at {},{} did not match actual {}.".format(
|
||||
expected_output, x, y, debugged.value.fv[0:4]))
|
||||
|
||||
@@ -35,7 +35,7 @@ class D3D12_Shader_Debug_Zoo(rdtest.TestCase):
|
||||
|
||||
output = self.find_output_source_var(trace, rd.ShaderBuiltin.ColorOutput, 0)
|
||||
|
||||
debugged = self.evalute_source_var(output, variables)
|
||||
debugged = self.evaluate_source_var(output, variables)
|
||||
|
||||
try:
|
||||
self.check_pixel_value(pipe.GetOutputTargets()[0].resourceId, 4 * test, 0, debugged.value.fv[0:4], 0.0)
|
||||
|
||||
Reference in New Issue
Block a user