Skip to content

Commit 6dca57a

Browse files
const correctness on surface capabilities
1 parent 0514f58 commit 6dca57a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/nbl/video/utilities/SPhysicalDeviceFilter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ namespace nbl::video
5454
// See vkGetPhysicalDeviceSurfaceSupportKHR
5555
struct SurfaceCompatibility
5656
{
57-
ISurface* surface = nullptr;
57+
const ISurface* surface = nullptr;
5858
// Setting this to `EQF_NONE` means it sufffices to find any queue family that can present to this surface, regardless of flags it might have
5959
core::bitflag<IPhysicalDevice::E_QUEUE_FLAGS> presentationQueueFlags = IPhysicalDevice::E_QUEUE_FLAGS::EQF_NONE;
6060
};
61-
SurfaceCompatibility* requiredSurfaceCompatibilities = nullptr;
61+
const SurfaceCompatibility* requiredSurfaceCompatibilities = nullptr;
6262
uint32_t requiredSurfaceCompatibilitiesCount = 0u;
6363

6464

0 commit comments

Comments
 (0)