2019-04-24 19:44:12 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "d3d11_interfaces.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
2022-08-03 17:24:34 +02:00
|
|
|
class D3D11DeferredContext;
|
|
|
|
class D3D11ImmediateContext;
|
2019-04-24 19:44:12 +02:00
|
|
|
|
2022-08-03 17:24:34 +02:00
|
|
|
template<typename ContextType>
|
2021-09-17 22:30:49 +02:00
|
|
|
class D3D11DeviceContextExt : public ID3D11VkExtContext1 {
|
2019-04-24 19:44:12 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
D3D11DeviceContextExt(
|
2022-08-03 17:24:34 +02:00
|
|
|
ContextType* pContext);
|
2019-04-24 19:44:12 +02:00
|
|
|
|
|
|
|
ULONG STDMETHODCALLTYPE AddRef();
|
|
|
|
|
|
|
|
ULONG STDMETHODCALLTYPE Release();
|
|
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE QueryInterface(
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE MultiDrawIndirect(
|
|
|
|
UINT DrawCount,
|
|
|
|
ID3D11Buffer* pBufferForArgs,
|
|
|
|
UINT ByteOffsetForArgs,
|
|
|
|
UINT ByteStrideForArgs);
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE MultiDrawIndexedIndirect(
|
|
|
|
UINT DrawCount,
|
|
|
|
ID3D11Buffer* pBufferForArgs,
|
|
|
|
UINT ByteOffsetForArgs,
|
|
|
|
UINT ByteStrideForArgs);
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE MultiDrawIndirectCount(
|
|
|
|
UINT MaxDrawCount,
|
|
|
|
ID3D11Buffer* pBufferForCount,
|
|
|
|
UINT ByteOffsetForCount,
|
|
|
|
ID3D11Buffer* pBufferForArgs,
|
|
|
|
UINT ByteOffsetForArgs,
|
|
|
|
UINT ByteStrideForArgs);
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE MultiDrawIndexedIndirectCount(
|
|
|
|
UINT MaxDrawCount,
|
|
|
|
ID3D11Buffer* pBufferForCount,
|
|
|
|
UINT ByteOffsetForCount,
|
|
|
|
ID3D11Buffer* pBufferForArgs,
|
|
|
|
UINT ByteOffsetForArgs,
|
|
|
|
UINT ByteStrideForArgs);
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE SetDepthBoundsTest(
|
|
|
|
BOOL Enable,
|
|
|
|
FLOAT MinDepthBounds,
|
|
|
|
FLOAT MaxDepthBounds);
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE SetBarrierControl(
|
|
|
|
UINT ControlFlags);
|
2021-09-17 22:30:49 +02:00
|
|
|
|
|
|
|
bool STDMETHODCALLTYPE LaunchCubinShaderNVX(
|
|
|
|
IUnknown* hShader,
|
|
|
|
uint32_t GridX,
|
|
|
|
uint32_t GridY,
|
|
|
|
uint32_t GridZ,
|
|
|
|
const void* pParams,
|
|
|
|
uint32_t paramSize,
|
|
|
|
void* const* pReadResources,
|
|
|
|
uint32_t NumReadResources,
|
|
|
|
void* const* pWriteResources,
|
|
|
|
uint32_t NumWriteResources);
|
|
|
|
|
2019-04-24 19:44:12 +02:00
|
|
|
private:
|
|
|
|
|
2022-08-03 17:24:34 +02:00
|
|
|
ContextType* m_ctx;
|
2021-09-17 22:30:49 +02:00
|
|
|
|
2019-04-24 19:44:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|