1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

[d3d11] Implemented CreateHullShader and CreateDomainShader

This commit is contained in:
Philip Rebohle 2018-01-29 11:53:57 +01:00
parent cea86472bf
commit 08a916487d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -879,8 +879,18 @@ namespace dxvk {
SIZE_T BytecodeLength,
ID3D11ClassLinkage* pClassLinkage,
ID3D11HullShader** ppHullShader) {
Logger::err("D3D11Device::CreateHullShader: Not implemented");
return E_NOTIMPL;
D3D11ShaderModule module;
if (FAILED(this->CreateShaderModule(&module,
pShaderBytecode, BytecodeLength, pClassLinkage)))
return E_INVALIDARG;
if (ppHullShader != nullptr) {
*ppHullShader = ref(new D3D11HullShader(
this, std::move(module)));
}
return S_OK;
}
@ -889,8 +899,18 @@ namespace dxvk {
SIZE_T BytecodeLength,
ID3D11ClassLinkage* pClassLinkage,
ID3D11DomainShader** ppDomainShader) {
Logger::err("D3D11Device::CreateDomainShader: Not implemented");
return E_NOTIMPL;
D3D11ShaderModule module;
if (FAILED(this->CreateShaderModule(&module,
pShaderBytecode, BytecodeLength, pClassLinkage)))
return E_INVALIDARG;
if (ppDomainShader != nullptr) {
*ppDomainShader = ref(new D3D11DomainShader(
this, std::move(module)));
}
return S_OK;
}