mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-28 15:39:00 +02:00
[vk] SL complete removal
This commit is contained in:
parent
ea2706b35d
commit
2c3d0bb654
10 changed files with 1 additions and 205 deletions
|
|
@ -1181,11 +1181,6 @@ bool Device::GetSuitability(bool requires_swapchain) {
|
|||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT;
|
||||
SetNext(next, properties.transform_feedback);
|
||||
}
|
||||
if (extensions.sample_locations) {
|
||||
properties.sample_locations.sType =
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT;
|
||||
SetNext(next, properties.sample_locations);
|
||||
}
|
||||
if (extensions.maintenance5) {
|
||||
properties.maintenance5.sType =
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES_KHR;
|
||||
|
|
@ -1418,12 +1413,6 @@ void Device::RemoveUnsuitableExtensions() {
|
|||
RemoveExtensionFeatureIfUnsuitable(extensions.transform_feedback, features.transform_feedback,
|
||||
VK_EXT_TRANSFORM_FEEDBACK_EXTENSION_NAME);
|
||||
|
||||
// VK_EXT_sample_locations
|
||||
extensions.sample_locations =
|
||||
loaded_extensions.contains(VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME);
|
||||
RemoveExtensionIfUnsuitable(extensions.sample_locations,
|
||||
VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME);
|
||||
|
||||
// VK_EXT_vertex_input_dynamic_state
|
||||
extensions.vertex_input_dynamic_state =
|
||||
features.vertex_input_dynamic_state.vertexInputDynamicState;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ VK_DEFINE_HANDLE(VmaAllocator)
|
|||
EXTENSION(EXT, DEPTH_RANGE_UNRESTRICTED, depth_range_unrestricted) \
|
||||
EXTENSION(EXT, MEMORY_BUDGET, memory_budget) \
|
||||
EXTENSION(EXT, ROBUSTNESS_2, robustness_2) \
|
||||
EXTENSION(EXT, SAMPLE_LOCATIONS, sample_locations) \
|
||||
EXTENSION(EXT, SAMPLER_FILTER_MINMAX, sampler_filter_minmax) \
|
||||
EXTENSION(EXT, SHADER_STENCIL_EXPORT, shader_stencil_export) \
|
||||
EXTENSION(EXT, SHADER_VIEWPORT_INDEX_LAYER, shader_viewport_index_layer) \
|
||||
|
|
@ -344,10 +343,6 @@ public:
|
|||
return properties.float_controls;
|
||||
}
|
||||
|
||||
/// Returns sample location properties (VK_EXT_sample_locations).
|
||||
const VkPhysicalDeviceSampleLocationsPropertiesEXT& SampleLocationProperties() const {
|
||||
return properties.sample_locations;
|
||||
}
|
||||
|
||||
/// Returns true if ASTC is natively supported.
|
||||
bool IsOptimalAstcSupported() const {
|
||||
|
|
@ -577,17 +572,6 @@ public:
|
|||
return extensions.transform_feedback &&
|
||||
properties.transform_feedback.transformFeedbackQueries;
|
||||
}
|
||||
|
||||
/// Returns true if the device supports VK_EXT_sample_locations.
|
||||
bool IsExtSampleLocationsSupported() const {
|
||||
return extensions.sample_locations;
|
||||
}
|
||||
|
||||
/// Returns true if the device supports custom sample locations for the given sample count.
|
||||
bool SupportsSampleLocationsFor(VkSampleCountFlagBits samples) const {
|
||||
return extensions.sample_locations &&
|
||||
(properties.sample_locations.sampleLocationSampleCounts & samples) != 0;
|
||||
}
|
||||
|
||||
/// Returns true if the device supports VK_EXT_transform_feedback properly.
|
||||
bool AreTransformFeedbackGeometryStreamsSupported() const {
|
||||
|
|
@ -1050,7 +1034,6 @@ private:
|
|||
VkPhysicalDevicePushDescriptorPropertiesKHR push_descriptor{};
|
||||
VkPhysicalDeviceSubgroupSizeControlProperties subgroup_size_control{};
|
||||
VkPhysicalDeviceTransformFeedbackPropertiesEXT transform_feedback{};
|
||||
VkPhysicalDeviceSampleLocationsPropertiesEXT sample_locations{};
|
||||
VkPhysicalDeviceMaintenance5PropertiesKHR maintenance5{};
|
||||
|
||||
VkPhysicalDeviceProperties properties{};
|
||||
|
|
|
|||
|
|
@ -164,7 +164,6 @@ void Load(VkDevice device, DeviceDispatch& dld) noexcept {
|
|||
X(vkCmdSetColorWriteMaskEXT);
|
||||
X(vkCmdSetColorBlendEnableEXT);
|
||||
X(vkCmdSetColorBlendEquationEXT);
|
||||
X(vkCmdSetSampleLocationsEXT);
|
||||
X(vkCmdResolveImage);
|
||||
X(vkCreateBuffer);
|
||||
X(vkCreateBufferView);
|
||||
|
|
|
|||
|
|
@ -266,7 +266,6 @@ struct DeviceDispatch : InstanceDispatch {
|
|||
PFN_vkCmdSetColorWriteMaskEXT vkCmdSetColorWriteMaskEXT{};
|
||||
PFN_vkCmdSetColorBlendEnableEXT vkCmdSetColorBlendEnableEXT{};
|
||||
PFN_vkCmdSetColorBlendEquationEXT vkCmdSetColorBlendEquationEXT{};
|
||||
PFN_vkCmdSetSampleLocationsEXT vkCmdSetSampleLocationsEXT{};
|
||||
PFN_vkCmdWaitEvents vkCmdWaitEvents{};
|
||||
PFN_vkCreateBuffer vkCreateBuffer{};
|
||||
PFN_vkCreateBufferView vkCreateBufferView{};
|
||||
|
|
@ -1514,10 +1513,6 @@ public:
|
|||
dld->vkCmdSetColorBlendEquationEXT(handle, first, equations.size(), equations.data());
|
||||
}
|
||||
|
||||
void SetSampleLocationsEXT(const VkSampleLocationsInfoEXT& info) const noexcept {
|
||||
dld->vkCmdSetSampleLocationsEXT(handle, &info);
|
||||
}
|
||||
|
||||
void SetLineWidth(float line_width) const noexcept {
|
||||
dld->vkCmdSetLineWidth(handle, line_width);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue