mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 22:54:16 +01:00
[dxbc] Disabled clip and cull planes for now
We would have to write these values, but the feature is currently not supported in the D3D11 implementation.
This commit is contained in:
parent
6dfe09da7b
commit
c816078f13
@ -4333,25 +4333,25 @@ namespace dxvk {
|
|||||||
uint32_t DxbcCompiler::getPerVertexBlockId() {
|
uint32_t DxbcCompiler::getPerVertexBlockId() {
|
||||||
uint32_t t_f32 = m_module.defFloatType(32);
|
uint32_t t_f32 = m_module.defFloatType(32);
|
||||||
uint32_t t_f32_v4 = m_module.defVectorType(t_f32, 4);
|
uint32_t t_f32_v4 = m_module.defVectorType(t_f32, 4);
|
||||||
uint32_t t_f32_a4 = m_module.defArrayType(t_f32, m_module.constu32(4));
|
// uint32_t t_f32_a4 = m_module.defArrayType(t_f32, m_module.constu32(4));
|
||||||
|
|
||||||
std::array<uint32_t, 3> members;
|
std::array<uint32_t, 1> members;
|
||||||
members[PerVertex_Position] = t_f32_v4;
|
members[PerVertex_Position] = t_f32_v4;
|
||||||
members[PerVertex_CullDist] = t_f32_a4;
|
// members[PerVertex_CullDist] = t_f32_a4;
|
||||||
members[PerVertex_ClipDist] = t_f32_a4;
|
// members[PerVertex_ClipDist] = t_f32_a4;
|
||||||
|
|
||||||
uint32_t typeId = m_module.defStructTypeUnique(
|
uint32_t typeId = m_module.defStructTypeUnique(
|
||||||
members.size(), members.data());
|
members.size(), members.data());
|
||||||
|
|
||||||
m_module.memberDecorateBuiltIn(typeId, PerVertex_Position, spv::BuiltInPosition);
|
m_module.memberDecorateBuiltIn(typeId, PerVertex_Position, spv::BuiltInPosition);
|
||||||
m_module.memberDecorateBuiltIn(typeId, PerVertex_CullDist, spv::BuiltInCullDistance);
|
// m_module.memberDecorateBuiltIn(typeId, PerVertex_CullDist, spv::BuiltInCullDistance);
|
||||||
m_module.memberDecorateBuiltIn(typeId, PerVertex_ClipDist, spv::BuiltInClipDistance);
|
// m_module.memberDecorateBuiltIn(typeId, PerVertex_ClipDist, spv::BuiltInClipDistance);
|
||||||
m_module.decorateBlock(typeId);
|
m_module.decorateBlock(typeId);
|
||||||
|
|
||||||
m_module.setDebugName(typeId, "per_vertex");
|
m_module.setDebugName(typeId, "per_vertex");
|
||||||
m_module.setDebugMemberName(typeId, PerVertex_Position, "position");
|
m_module.setDebugMemberName(typeId, PerVertex_Position, "position");
|
||||||
m_module.setDebugMemberName(typeId, PerVertex_CullDist, "cull_dist");
|
// m_module.setDebugMemberName(typeId, PerVertex_CullDist, "cull_dist");
|
||||||
m_module.setDebugMemberName(typeId, PerVertex_ClipDist, "clip_dist");
|
// m_module.setDebugMemberName(typeId, PerVertex_ClipDist, "clip_dist");
|
||||||
return typeId;
|
return typeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user