Allow specifying rasterized stream for creating geom shaders

This commit is contained in:
baldurk
2019-11-20 15:00:54 +00:00
parent 9f12e5d01e
commit bda6066737
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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;
}
+1 -1
View File
@@ -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);