HRESULT WrappedID3D11Device::CreateDeviceContextState(UINT Flags, const D3D_FEATURE_LEVEL *pFeatureLevels, UINT FeatureLevels, UINT SDKVersion, REFIID EmulatedInterface,
														D3D_FEATURE_LEVEL *pChosenFeatureLevel, ID3DDeviceContextState **ppContextState)
{
	if(m_pDevice1 == NULL) return E_NOINTERFACE;
	RDCUNIMPLEMENTED("Not wrapping CreateDeviceContextState");
	return m_pDevice1->CreateDeviceContextState(Flags, pFeatureLevels, FeatureLevels, SDKVersion, EmulatedInterface, pChosenFeatureLevel, ppContextState);
}
示例#2
0
HRESULT WrappedIDXGISwapChain2::GetDevice(
    /* [in] */ REFIID riid,
    /* [retval][out] */ void **ppDevice)
{
    HRESULT ret = m_pReal->GetDevice(riid, ppDevice);

    if(SUCCEEDED(ret))
    {
        // try one of the trivial wraps, we don't mind making a new one of those
        if(riid == __uuidof(ID3D11Device))
        {
            // probably they're asking for the device device.
            *ppDevice = m_pDevice;
            m_pDevice->AddRef();
        }
        else if(riid == __uuidof(IDXGISwapChain))
        {
            // don't think anyone would try this, but what the hell.
            *ppDevice = this;
            AddRef();
        }
        else if(!HandleWrap(riid, ppDevice))
        {
            // can probably get away with returning the real result here,
            // but it worries me a bit.
            RDCUNIMPLEMENTED("Not returning trivial type");
        }
    }

    return ret;
}
示例#3
0
HRESULT WrappedID3D11Device::OpenSharedResource1(HANDLE hResource, REFIID returnedInterface,
                                                 void **ppResource)
{
  if(m_pDevice1 == NULL)
    return E_NOINTERFACE;
  RDCUNIMPLEMENTED("Not wrapping OpenSharedResource1");
  return m_pDevice1->OpenSharedResource1(hResource, returnedInterface, ppResource);
}
示例#4
0
HRESULT WrappedID3D11Device::OpenSharedResourceByName(LPCWSTR lpName, DWORD dwDesiredAccess,
                                                      REFIID returnedInterface, void **ppResource)
{
  if(m_pDevice1 == NULL)
    return E_NOINTERFACE;
  RDCUNIMPLEMENTED("Not wrapping OpenSharedResourceByName");
  return m_pDevice1->OpenSharedResourceByName(lpName, dwDesiredAccess, returnedInterface, ppResource);
}
示例#5
0
void WrappedID3D11Device::WriteToSubresource(ID3D11Resource *pDstResource, UINT DstSubresource,
                                             const D3D11_BOX *pDstBox, const void *pSrcData,
                                             UINT SrcRowPitch, UINT SrcDepthPitch)
{
  if(m_pDevice3 == NULL)
    return;

  RDCUNIMPLEMENTED(
      "WriteToSubresource is not supported. Please contact me if you have a working example! "
      "https://github.com/baldurk/renderdoc/issues");

  m_pDevice3->WriteToSubresource(pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch,
                                 SrcDepthPitch);

  return;
}
示例#6
0
void WrappedID3D11Device::ReadFromSubresource(void *pDstData, UINT DstRowPitch, UINT DstDepthPitch,
                                              ID3D11Resource *pSrcResource, UINT SrcSubresource,
                                              const D3D11_BOX *pSrcBox)
{
  if(m_pDevice3 == NULL)
    return;

  RDCUNIMPLEMENTED(
      "ReadFromSubresource is not supported. Please contact me if you have a working example! "
      "https://github.com/baldurk/renderdoc/issues");

  m_pDevice3->ReadFromSubresource(pDstData, DstRowPitch, DstDepthPitch, pSrcResource,
                                  SrcSubresource, pSrcBox);

  return;
}
示例#7
0
void GLReplay::FreeTargetResource(ResourceId id)
{
	RDCUNIMPLEMENTED();
}
示例#8
0
extern "C" RENDERDOC_API void RENDERDOC_CC ReplayRenderer_ShutdownOutput(ReplayRenderer *rend, ReplayOutput *output)
{ RDCUNIMPLEMENTED("destroying individual outputs"); }
示例#9
0
byte *GLReplay::GetTextureData(ResourceId tex, uint32_t arrayIdx, uint32_t mip, size_t &dataSize)
{
	RDCUNIMPLEMENTED();
	return NULL;
}
示例#10
0
void GLReplay::SetContextFilter(ResourceId id, uint32_t firstDefEv, uint32_t lastDefEv)
{
	RDCUNIMPLEMENTED();
}
示例#11
0
bool GLReplay::IsOutputWindowVisible(uint64_t id)
{
  RDCUNIMPLEMENTED("GLReplay::IsOutputWindowVisible");
  return false;
}
示例#12
0
void GLReplay::DestroyOutputWindow(uint64_t id)
{
  RDCUNIMPLEMENTED("GLReplay::DestroyOutputWindow");
}
示例#13
0
void GLReplay::CloseReplayContext()
{
  RDCUNIMPLEMENTED("GLReplay::CloseReplayContext");
}
示例#14
0
ShaderDebugTrace GLReplay::DebugVertex(uint32_t frameID, uint32_t eventID, uint32_t vertid, uint32_t instid, uint32_t idx, uint32_t instOffset, uint32_t vertOffset)
{
	RDCUNIMPLEMENTED();
	return ShaderDebugTrace();
}
示例#15
0
void GLReplay::BuildCustomShader(string source, string entry, const uint32_t compileFlags, ShaderStageType type, ResourceId *id, string *errors)
{
	RDCUNIMPLEMENTED();
}
示例#16
0
bool GLReplay::SaveTexture(ResourceId tex, uint32_t saveMip, wstring path)
{
	RDCUNIMPLEMENTED();
	return false;
}
示例#17
0
void GLReplay::TimeDrawcalls(rdctype::array<FetchDrawcall> &arr)
{
	RDCUNIMPLEMENTED();
}
示例#18
0
void GLReplay::RemoveReplacement(ResourceId id)
{
	RDCUNIMPLEMENTED();
}
示例#19
0
void GLReplay::ReplaceResource(ResourceId from, ResourceId to)
{
	RDCUNIMPLEMENTED();
}
示例#20
0
void GLReplay::MakeCurrentReplayContext(GLWindowingData *ctx)
{
  RDCUNIMPLEMENTED("GLReplay::MakeCurrentReplayContext");
}
示例#21
0
void GLReplay::SwapBuffers(GLWindowingData *ctx)
{
  RDCUNIMPLEMENTED("GLReplay::SwapBuffers");
}
示例#22
0
ShaderDebugTrace GLReplay::DebugPixel(uint32_t frameID, uint32_t eventID, uint32_t x, uint32_t y)
{
	RDCUNIMPLEMENTED();
	return ShaderDebugTrace();
}
示例#23
0
uint64_t GLReplay::MakeOutputWindow(WindowingSystem system, void *data, bool depth)
{
  RDCUNIMPLEMENTED("GLReplay::MakeOutputWindow");
  return 0;
}
示例#24
0
ShaderDebugTrace GLReplay::DebugThread(uint32_t frameID, uint32_t eventID, uint32_t groupid[3], uint32_t threadid[3])
{
	RDCUNIMPLEMENTED();
	return ShaderDebugTrace();
}
示例#25
0
void GLReplay::GetOutputWindowDimensions(uint64_t id, int32_t &w, int32_t &h)
{
  RDCUNIMPLEMENTED("GLReplay::GetOutputWindowDimensions");
}
示例#26
0
ResourceId GLReplay::CreateProxyTexture( FetchTexture templateTex )
{
	RDCUNIMPLEMENTED();
	return ResourceId();
}
示例#27
0
ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **driver)
{
  RDCUNIMPLEMENTED("GL_CreateReplayDevice");
  return eReplayCreate_APIHardwareUnsupported;
}
示例#28
0
void GLReplay::SetProxyTextureData(ResourceId texid, uint32_t arrayIdx, uint32_t mip, byte *data, size_t dataSize)
{
	RDCUNIMPLEMENTED();
}
示例#29
0
ResourceId GLReplay::ApplyCustomShader(ResourceId shader, ResourceId texid, uint32_t mip)
{
	RDCUNIMPLEMENTED();
	return ResourceId();
}
示例#30
0
void GLReplay::FreeCustomShader(ResourceId id)
{
	RDCUNIMPLEMENTED();
}