Skip to content

Commit

Permalink
Constify hand-written extension names
Browse files Browse the repository at this point in the history
  • Loading branch information
swooster committed Feb 27, 2022
1 parent e150b85 commit 67723a9
Show file tree
Hide file tree
Showing 53 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/buffer_device_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl BufferDeviceAddress {
self.fp.get_buffer_device_address_ext(self.handle, info)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtBufferDeviceAddressFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/calibrated_timestamps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl CalibratedTimestamps {
.result_with_success((timestamps, max_deviation))
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtCalibratedTimestampsFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/debug_marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl DebugMarker {
.cmd_debug_marker_insert_ext(command_buffer, marker_info);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtDebugMarkerFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/debug_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl DebugReport {
.result_with_success(debug_cb)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtDebugReportFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/debug_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl DebugUtils {
);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtDebugUtilsFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/extended_dynamic_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl ExtendedDynamicState {
)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtExtendedDynamicStateFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/extended_dynamic_state2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl ExtendedDynamicState2 {
.cmd_set_primitive_restart_enable_ext(command_buffer, primitive_restart_enable.into())
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtExtendedDynamicState2Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/full_screen_exclusive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl FullScreenExclusive {
.result_with_success(present_modes)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtFullScreenExclusiveFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/headless_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl HeadlessSurface {
.result_with_success(surface)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtHeadlessSurfaceFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/metal_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl MetalSurface {
.result_with_success(surface)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtMetalSurfaceFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/physical_device_drm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl PhysicalDeviceDrm {
props_drm
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtPhysicalDeviceDrmFn::name()
}
}
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/private_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl PrivateData {
data
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtPrivateDataFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/ext/tooling_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl ToolingInfo {
})
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::ExtToolingInfoFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/acceleration_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl AccelerationStructure {
size_info
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrAccelerationStructureFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/android_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl AndroidSurface {
.result_with_success(surface)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrAndroidSurfaceFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/buffer_device_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl BufferDeviceAddress {
.get_device_memory_opaque_capture_address_khr(self.handle, info)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrBufferDeviceAddressFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/copy_commands2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl CopyCommands2 {
.cmd_resolve_image2_khr(command_buffer, resolve_image_info)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrCopyCommands2Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/create_render_pass2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl CreateRenderPass2 {
.cmd_end_render_pass2_khr(command_buffer, subpass_end_info);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrCreateRenderpass2Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/deferred_host_operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl DeferredHostOperations {
.result()
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrDeferredHostOperationsFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Display {
.result_with_success(surface.assume_init())
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrDisplayFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/display_swapchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl DisplaySwapchain {
err_code.result_with_success(swapchains)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrDisplaySwapchainFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/draw_indirect_count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl DrawIndirectCount {
);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrDrawIndirectCountFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/dynamic_rendering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl DynamicRendering {
self.fp.cmd_end_rendering_khr(command_buffer)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrDynamicRenderingFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/external_fence_fd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl ExternalFenceFd {
.result_with_success(fd)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrExternalFenceFdFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/external_fence_win32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl ExternalFenceWin32 {
.result_with_success(handle)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrExternalFenceWin32Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/external_memory_fd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl ExternalMemoryFd {
.result_with_success(memory_fd_properties)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrExternalMemoryFdFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/external_memory_win32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl ExternalMemoryWin32 {
.result_with_success(memory_win32_handle_properties)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrExternalMemoryWin32Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/external_semaphore_fd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl ExternalSemaphoreFd {
.result_with_success(fd)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrExternalSemaphoreFdFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/external_semaphore_win32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl ExternalSemaphoreWin32 {
.result_with_success(handle)
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrExternalSemaphoreWin32Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/get_memory_requirements2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl GetMemoryRequirements2 {
assert_eq!(count as usize, out.len());
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrGetMemoryRequirements2Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/get_physical_device_properties2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl GetPhysicalDeviceProperties2 {
assert_eq!(count as usize, out.len());
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrGetPhysicalDeviceProperties2Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/get_surface_capabilities2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl GetSurfaceCapabilities2 {
err_code.result()
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrGetSurfaceCapabilities2Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/maintenance1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Maintenance1 {
.trim_command_pool_khr(self.handle, command_pool, flags);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrMaintenance1Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/maintenance3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Maintenance3 {
.get_descriptor_set_layout_support_khr(self.handle, create_info, out);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrMaintenance3Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/maintenance4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Maintenance4 {
assert_eq!(count as usize, out.len());
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrMaintenance4Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/pipeline_executable_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl PipelineExecutableProperties {
})
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrPipelineExecutablePropertiesFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/present_wait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl PresentWait {
.result()
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrPresentWaitFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/push_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl PushDescriptor {
);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrPushDescriptorFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/ray_tracing_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl RayTracingPipeline {
.cmd_set_ray_tracing_pipeline_stack_size_khr(command_buffer, pipeline_stack_size);
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrRayTracingPipelineFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl Surface {
.destroy_surface_khr(self.handle, surface, allocation_callbacks.as_raw_ptr());
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrSurfaceFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/swapchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Swapchain {
})
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrSwapchainFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/synchronization2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl Synchronization2 {
.result()
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrSynchronization2Fn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/timeline_semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl TimelineSemaphore {
.result()
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrTimelineSemaphoreFn::name()
}

Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/wayland_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl WaylandSurface {
b > 0
}

pub fn name() -> &'static CStr {
pub const fn name() -> &'static CStr {
vk::KhrWaylandSurfaceFn::name()
}

Expand Down

0 comments on commit 67723a9

Please sign in to comment.