mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Wired up draw calls and dispatch calls to the underlying DXVK context
This commit is contained in:
parent
64d9ad0027
commit
d225744c98
@ -226,7 +226,11 @@ namespace dxvk {
|
|||||||
void D3D11DeviceContext::Draw(
|
void D3D11DeviceContext::Draw(
|
||||||
UINT VertexCount,
|
UINT VertexCount,
|
||||||
UINT StartVertexLocation) {
|
UINT StartVertexLocation) {
|
||||||
Logger::err("D3D11DeviceContext::Draw: Not implemented");
|
TRACE(this, VertexCount, StartVertexLocation);
|
||||||
|
|
||||||
|
m_context->draw(
|
||||||
|
VertexCount, 1,
|
||||||
|
StartVertexLocation, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -234,7 +238,12 @@ namespace dxvk {
|
|||||||
UINT IndexCount,
|
UINT IndexCount,
|
||||||
UINT StartIndexLocation,
|
UINT StartIndexLocation,
|
||||||
INT BaseVertexLocation) {
|
INT BaseVertexLocation) {
|
||||||
Logger::err("D3D11DeviceContext::DrawIndexed: Not implemented");
|
TRACE(this, IndexCount, StartIndexLocation, BaseVertexLocation);
|
||||||
|
|
||||||
|
m_context->drawIndexed(
|
||||||
|
IndexCount, 1,
|
||||||
|
StartIndexLocation,
|
||||||
|
BaseVertexLocation, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -243,7 +252,14 @@ namespace dxvk {
|
|||||||
UINT InstanceCount,
|
UINT InstanceCount,
|
||||||
UINT StartVertexLocation,
|
UINT StartVertexLocation,
|
||||||
UINT StartInstanceLocation) {
|
UINT StartInstanceLocation) {
|
||||||
Logger::err("D3D11DeviceContext::DrawInstanced: Not implemented");
|
TRACE(this, VertexCountPerInstance, InstanceCount,
|
||||||
|
StartVertexLocation, StartInstanceLocation);
|
||||||
|
|
||||||
|
m_context->draw(
|
||||||
|
VertexCountPerInstance,
|
||||||
|
InstanceCount,
|
||||||
|
StartVertexLocation,
|
||||||
|
StartInstanceLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -253,7 +269,15 @@ namespace dxvk {
|
|||||||
UINT StartIndexLocation,
|
UINT StartIndexLocation,
|
||||||
INT BaseVertexLocation,
|
INT BaseVertexLocation,
|
||||||
UINT StartInstanceLocation) {
|
UINT StartInstanceLocation) {
|
||||||
Logger::err("D3D11DeviceContext::DrawIndexedInstanced: Not implemented");
|
TRACE(this, IndexCountPerInstance, InstanceCount,
|
||||||
|
StartIndexLocation, BaseVertexLocation, StartInstanceLocation);
|
||||||
|
|
||||||
|
m_context->drawIndexed(
|
||||||
|
IndexCountPerInstance,
|
||||||
|
InstanceCount,
|
||||||
|
StartIndexLocation,
|
||||||
|
BaseVertexLocation,
|
||||||
|
StartInstanceLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -275,7 +299,12 @@ namespace dxvk {
|
|||||||
UINT ThreadGroupCountX,
|
UINT ThreadGroupCountX,
|
||||||
UINT ThreadGroupCountY,
|
UINT ThreadGroupCountY,
|
||||||
UINT ThreadGroupCountZ) {
|
UINT ThreadGroupCountZ) {
|
||||||
Logger::err("D3D11DeviceContext::Dispatch: Not implemented");
|
TRACE(this, ThreadGroupCountX, ThreadGroupCountY, ThreadGroupCountZ);
|
||||||
|
|
||||||
|
m_context->dispatch(
|
||||||
|
ThreadGroupCountX,
|
||||||
|
ThreadGroupCountY,
|
||||||
|
ThreadGroupCountZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user