@@ -283,14 +283,12 @@ u32 Physical_Device::n_present_modes(VkSurfaceKHR surface) {
283283
284284void Physical_Device::get_surface_formats (VkSurfaceKHR surface, Slice<VkSurfaceFormatKHR> formats) {
285285 u32 n = static_cast <u32 >(formats.length ());
286- RVK_CHECK (vkGetPhysicalDeviceSurfaceFormatsKHR (
287- device, surface, &n, const_cast <VkSurfaceFormatKHR*>(formats.data ())));
286+ RVK_CHECK (vkGetPhysicalDeviceSurfaceFormatsKHR (device, surface, &n, formats.data ()));
288287}
289288
290289void Physical_Device::get_present_modes (VkSurfaceKHR surface, Slice<VkPresentModeKHR> modes) {
291290 u32 n = static_cast <u32 >(modes.length ());
292- RVK_CHECK (vkGetPhysicalDeviceSurfacePresentModesKHR (
293- device, surface, &n, const_cast <VkPresentModeKHR*>(modes.data ())));
291+ RVK_CHECK (vkGetPhysicalDeviceSurfacePresentModesKHR (device, surface, &n, modes.data ()));
294292}
295293
296294u64 Physical_Device::max_allocation () {
@@ -686,7 +684,8 @@ void Device::submit(Commands& cmds, u32 index, Fence& fence) {
686684 }
687685}
688686
689- void Device::submit (Commands& cmds, u32 index, Slice<Sem_Ref> signal, Slice<Sem_Ref> wait) {
687+ void Device::submit (Commands& cmds, u32 index, Slice<const Sem_Ref> signal,
688+ Slice<const Sem_Ref> wait) {
690689
691690 Region (R) {
692691
@@ -732,8 +731,8 @@ void Device::submit(Commands& cmds, u32 index, Slice<Sem_Ref> signal, Slice<Sem_
732731 }
733732}
734733
735- void Device::submit (Commands& cmds, u32 index, Slice<Sem_Ref> signal, Slice< Sem_Ref> wait ,
736- Fence& fence) {
734+ void Device::submit (Commands& cmds, u32 index, Slice<const Sem_Ref> signal ,
735+ Slice< const Sem_Ref> wait, Fence& fence) {
737736
738737 Region (R) {
739738
@@ -814,7 +813,7 @@ Slice<const char*> Device::baseline_extensions() {
814813 reinterpret_cast <const char *>(VK_KHR_EXTERNAL_FENCE_FD_EXTENSION_NAME),
815814#endif
816815 };
817- return Slice< const char *>{ device} ;
816+ return device. slice () ;
818817}
819818
820819Slice<const char *> Device::ray_tracing_extensions () {
@@ -826,7 +825,7 @@ Slice<const char*> Device::ray_tracing_extensions() {
826825 reinterpret_cast <const char *>(VK_KHR_RAY_TRACING_POSITION_FETCH_EXTENSION_NAME),
827826 reinterpret_cast <const char *>(VK_KHR_RAY_QUERY_EXTENSION_NAME),
828827 };
829- return Slice< const char *>{ device} ;
828+ return device. slice () ;
830829}
831830
832831} // namespace rvk::impl
0 commit comments