mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 18:23:52 +01:00
a7c25a01f2
Will be needed for both EmitCs and TrackSequenceNumber functions.
81 lines
2.7 KiB
C++
81 lines
2.7 KiB
C++
#pragma once
|
|
|
|
#include "d3d11_interfaces.h"
|
|
|
|
namespace dxvk {
|
|
|
|
class D3D11DeferredContext;
|
|
class D3D11ImmediateContext;
|
|
|
|
template<typename ContextType>
|
|
class D3D11DeviceContextExt : public ID3D11VkExtContext1 {
|
|
|
|
public:
|
|
|
|
D3D11DeviceContextExt(
|
|
ContextType* pContext);
|
|
|
|
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);
|
|
|
|
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);
|
|
|
|
private:
|
|
|
|
ContextType* m_ctx;
|
|
|
|
};
|
|
|
|
}
|