mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxbc] Added support for oDepthGe/oDepthLe
This commit is contained in:
parent
b3ba401503
commit
59be5b72e8
@ -444,6 +444,26 @@ namespace dxvk {
|
|||||||
"oDepth");
|
"oDepth");
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case DxbcOperandType::OutputDepthGe: {
|
||||||
|
m_module.setExecutionMode(m_entryPointId, spv::ExecutionModeDepthReplacing);
|
||||||
|
m_module.setExecutionMode(m_entryPointId, spv::ExecutionModeDepthGreater);
|
||||||
|
m_ps.builtinDepth = emitNewBuiltinVariable({
|
||||||
|
{ DxbcScalarType::Float32, 1, 0 },
|
||||||
|
spv::StorageClassOutput },
|
||||||
|
spv::BuiltInFragDepth,
|
||||||
|
"oDepthGe");
|
||||||
|
} break;
|
||||||
|
|
||||||
|
case DxbcOperandType::OutputDepthLe: {
|
||||||
|
m_module.setExecutionMode(m_entryPointId, spv::ExecutionModeDepthReplacing);
|
||||||
|
m_module.setExecutionMode(m_entryPointId, spv::ExecutionModeDepthLess);
|
||||||
|
m_ps.builtinDepth = emitNewBuiltinVariable({
|
||||||
|
{ DxbcScalarType::Float32, 1, 0 },
|
||||||
|
spv::StorageClassOutput },
|
||||||
|
spv::BuiltInFragDepth,
|
||||||
|
"oDepthLe");
|
||||||
|
} break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Logger::err(str::format(
|
Logger::err(str::format(
|
||||||
"DxbcCompiler: Unsupported operand type declaration: ",
|
"DxbcCompiler: Unsupported operand type declaration: ",
|
||||||
@ -3770,6 +3790,8 @@ namespace dxvk {
|
|||||||
m_ps.builtinSampleMaskOut };
|
m_ps.builtinSampleMaskOut };
|
||||||
|
|
||||||
case DxbcOperandType::OutputDepth:
|
case DxbcOperandType::OutputDepth:
|
||||||
|
case DxbcOperandType::OutputDepthGe:
|
||||||
|
case DxbcOperandType::OutputDepthLe:
|
||||||
return DxbcRegisterPointer {
|
return DxbcRegisterPointer {
|
||||||
{ DxbcScalarType::Float32, 1 },
|
{ DxbcScalarType::Float32, 1 },
|
||||||
m_ps.builtinDepth };
|
m_ps.builtinDepth };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user