mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-02 22:30:39 +00:00
d3d12: Use stream to buffer to upload vertex constants
This commit is contained in:
parent
2c802735bd
commit
73aeda1507
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ void D3D12GSRender::FillVertexShaderConstantsBuffer()
|
||||||
vertexConstants.second.z,
|
vertexConstants.second.z,
|
||||||
vertexConstants.second.w
|
vertexConstants.second.w
|
||||||
};
|
};
|
||||||
memcpy((char*)constantsBufferMap + heapOffset + vertexConstants.first, data, 4 * sizeof(float));
|
streamToBuffer((char*)constantsBufferMap + heapOffset + vertexConstants.first, data, 4 * sizeof(float));
|
||||||
}
|
}
|
||||||
m_constantsData.m_heap->Unmap(0, &range);
|
m_constantsData.m_heap->Unmap(0, &range);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue