mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Allow specifying rasterized stream for creating geom shaders
This commit is contained in:
@@ -613,14 +613,14 @@ ID3D11ComputeShaderPtr D3D11GraphicsTest::CreateCS(ID3DBlobPtr blob)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ID3D11GeometryShaderPtr D3D11GraphicsTest::CreateGS(ID3DBlobPtr blob,
|
||||
const std::vector<D3D11_SO_DECLARATION_ENTRY> &sodecl,
|
||||
const std::vector<UINT> &strides)
|
||||
ID3D11GeometryShaderPtr D3D11GraphicsTest::CreateGS(
|
||||
ID3DBlobPtr blob, const std::vector<D3D11_SO_DECLARATION_ENTRY> &sodecl,
|
||||
const std::vector<UINT> &strides, UINT rastStream)
|
||||
{
|
||||
ID3D11GeometryShaderPtr ret;
|
||||
CHECK_HR(dev->CreateGeometryShaderWithStreamOutput(blob->GetBufferPointer(), blob->GetBufferSize(),
|
||||
&sodecl[0], (UINT)sodecl.size(), &strides[0],
|
||||
(UINT)strides.size(), 0, NULL, &ret));
|
||||
(UINT)strides.size(), rastStream, NULL, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ struct D3D11GraphicsTest : public GraphicsTest
|
||||
ID3D11GeometryShaderPtr CreateGS(ID3DBlobPtr blob);
|
||||
ID3D11GeometryShaderPtr CreateGS(ID3DBlobPtr blob,
|
||||
const std::vector<D3D11_SO_DECLARATION_ENTRY> &sodecl,
|
||||
const std::vector<UINT> &strides);
|
||||
const std::vector<UINT> &strides, UINT rastStream = 0);
|
||||
|
||||
ID3DBlobPtr SetBlobPath(std::string name, ID3DBlob *blob);
|
||||
void SetBlobPath(std::string name, ID3D11DeviceChild *shader);
|
||||
|
||||
Reference in New Issue
Block a user