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:
parent
cea86472bf
commit
08a916487d
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user