mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-03 18:37:40 +00:00
GPU: Request sampleRateShading feature on Vulkan
This commit is contained in:
parent
4fd4d89b63
commit
6f456da63f
2 changed files with 4 additions and 1 deletions
|
@ -222,6 +222,7 @@
|
|||
* - `depthClamp`
|
||||
* - `shaderClipDistance`
|
||||
* - `drawIndirectFirstInstance`
|
||||
* - `sampleRateShading`
|
||||
*
|
||||
* **D3D12:** Supported on Windows 10 or newer, Xbox One (GDK), and Xbox
|
||||
* Series X|S (GDK). Requires a GPU that supports DirectX 12 Feature Level
|
||||
|
|
|
@ -11132,7 +11132,8 @@ static Uint8 VULKAN_INTERNAL_IsDeviceSuitable(
|
|||
!deviceFeatures.imageCubeArray ||
|
||||
!deviceFeatures.depthClamp ||
|
||||
!deviceFeatures.shaderClipDistance ||
|
||||
!deviceFeatures.drawIndirectFirstInstance) {
|
||||
!deviceFeatures.drawIndirectFirstInstance ||
|
||||
!deviceFeatures.sampleRateShading) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -11379,6 +11380,7 @@ static Uint8 VULKAN_INTERNAL_CreateLogicalDevice(
|
|||
desiredDeviceFeatures.depthClamp = VK_TRUE;
|
||||
desiredDeviceFeatures.shaderClipDistance = VK_TRUE;
|
||||
desiredDeviceFeatures.drawIndirectFirstInstance = VK_TRUE;
|
||||
desiredDeviceFeatures.sampleRateShading = VK_TRUE;
|
||||
|
||||
if (haveDeviceFeatures.fillModeNonSolid) {
|
||||
desiredDeviceFeatures.fillModeNonSolid = VK_TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue