mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix Draw_Zoo tests
This commit is contained in:
@@ -1512,7 +1512,7 @@ ShaderVariable Debugger::ReadFromPointer(const ShaderVariable &ptr) const
|
||||
if(ret.rows > 1)
|
||||
{
|
||||
// matrix case
|
||||
ClampScalars(apiWrapper, ptr, scalar0, scalar1);
|
||||
ClampScalars(apiWrapper, ret, scalar0, scalar1);
|
||||
|
||||
if(scalar0 != ~0U && scalar1 != ~0U)
|
||||
{
|
||||
@@ -1545,7 +1545,7 @@ ShaderVariable Debugger::ReadFromPointer(const ShaderVariable &ptr) const
|
||||
}
|
||||
else
|
||||
{
|
||||
ClampScalars(apiWrapper, ptr, scalar0);
|
||||
ClampScalars(apiWrapper, ret, scalar0);
|
||||
|
||||
// vector case, selecting a scalar (if anything)
|
||||
if(scalar0 != ~0U)
|
||||
|
||||
@@ -127,12 +127,13 @@ def get_vsin_attrs(controller: rd.ReplayController, vertexOffset: int, index_mes
|
||||
attr.name = a.name
|
||||
attr.mesh = rd.MeshFormat(index_mesh)
|
||||
|
||||
offs = a.byteOffset + vertexOffset * attr.mesh.vertexByteStride
|
||||
|
||||
attr.mesh.vertexByteStride = vbs[a.vertexBuffer].byteStride
|
||||
attr.mesh.instStepRate = a.instanceRate
|
||||
attr.mesh.instanced = a.perInstance
|
||||
attr.mesh.vertexResourceId = vbs[a.vertexBuffer].resourceId
|
||||
|
||||
offs = a.byteOffset + vertexOffset * attr.mesh.vertexByteStride
|
||||
|
||||
attr.mesh.vertexByteOffset = vbs[a.vertexBuffer].byteOffset + offs
|
||||
attr.mesh.vertexByteSize = max([0, vbs[a.vertexBuffer].byteSize - offs])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user