mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 16:21:52 +01:00
Don't require depthClamp
This commit is contained in:
parent
9055c98e09
commit
b24a8465da
@ -245,7 +245,6 @@ namespace skyline::gpu {
|
||||
FEAT_REQ(vk::PhysicalDeviceFeatures2, features.independentBlend);
|
||||
FEAT_REQ(vk::PhysicalDeviceFeatures2, features.shaderImageGatherExtended);
|
||||
FEAT_REQ(vk::PhysicalDeviceFeatures2, features.depthBiasClamp);
|
||||
FEAT_REQ(vk::PhysicalDeviceFeatures2, features.depthClamp);
|
||||
FEAT_REQ(vk::PhysicalDeviceShaderDrawParametersFeatures, shaderDrawParameters);
|
||||
|
||||
#undef FEAT_REQ
|
||||
|
@ -494,6 +494,8 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
||||
rasterizationCreateInfo.frontFace = packedState.frontFaceClockwise ? vk::FrontFace::eClockwise : vk::FrontFace::eCounterClockwise;
|
||||
rasterizationCreateInfo.depthBiasEnable = packedState.depthBiasEnable;
|
||||
rasterizationCreateInfo.depthClampEnable = packedState.depthClampEnable;
|
||||
if (!ctx.gpu.traits.supportsDepthClamp)
|
||||
Logger::Warn("Depth clamp used on guest without host support");
|
||||
rasterizationState.get<vk::PipelineRasterizationProvokingVertexStateCreateInfoEXT>().provokingVertexMode = ConvertProvokingVertex(packedState.provokingVertex);
|
||||
|
||||
constexpr vk::PipelineMultisampleStateCreateInfo multisampleState{
|
||||
|
@ -161,6 +161,7 @@ namespace skyline::gpu {
|
||||
FEAT_SET(vk::PhysicalDeviceFeatures2, features.fragmentStoresAndAtomics, supportsFragmentStoresAndAtomics)
|
||||
FEAT_SET(vk::PhysicalDeviceFeatures2, features.shaderStorageImageWriteWithoutFormat, supportsShaderStorageImageWriteWithoutFormat)
|
||||
FEAT_SET(vk::PhysicalDeviceFeatures2, features.wideLines, supportsWideLines)
|
||||
FEAT_SET(vk::PhysicalDeviceFeatures2, features.depthClamp, supportsDepthClamp)
|
||||
|
||||
#undef FEAT_SET
|
||||
|
||||
|
@ -45,6 +45,7 @@ namespace skyline::gpu {
|
||||
bool supportsShaderStorageImageWriteWithoutFormat{}; //!< If the device supports the 'shaderStorageImageWriteWithoutFormat' Vulkan feature
|
||||
bool supportsSubgroupVote{}; //!< If subgroup votes are supported in shaders with SPV_KHR_subgroup_vote
|
||||
bool supportsWideLines{}; //!< If the device supports the 'wideLines' Vulkan feature
|
||||
bool supportsDepthClamp{}; //!< If the device supports the 'depthClamp' Vulkan feature
|
||||
u32 subgroupSize{}; //!< Size of a subgroup on the host GPU
|
||||
|
||||
std::bitset<7> bcnSupport{}; //!< Bitmask of BCn texture formats supported, it is ordered as BC1, BC2, BC3, BC4, BC5, BC6H and BC7
|
||||
|
Loading…
Reference in New Issue
Block a user