1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 04:24:11 +01:00

[d3d10] Implement IASet|GetPrimitiveTopology

This commit is contained in:
Philip Rebohle 2018-08-11 19:15:55 +02:00
parent b97f9a702a
commit c80156ebce
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -534,7 +534,7 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D10Device::IASetPrimitiveTopology(
D3D10_PRIMITIVE_TOPOLOGY Topology) {
Logger::err("D3D10Device::IASetPrimitiveTopology: Not implemented");
m_context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY(Topology));
}
@ -564,7 +564,12 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D10Device::IAGetPrimitiveTopology(
D3D10_PRIMITIVE_TOPOLOGY* pTopology) {
Logger::err("D3D10Device::IAGetPrimitiveTopology: Not implemented");
D3D11_PRIMITIVE_TOPOLOGY d3d11Topology;
m_context->IAGetPrimitiveTopology(&d3d11Topology);
*pTopology = d3d11Topology <= 32 /* begin patch list */
? D3D10_PRIMITIVE_TOPOLOGY(d3d11Topology)
: D3D_PRIMITIVE_TOPOLOGY_UNDEFINED;
}