st/oxr: Remove unneeded prefixes on functions [NFC]

This commit is contained in:
Jakob Bornecrantz 2023-03-24 20:47:06 +00:00
parent 52f790289d
commit 9055b9d2ec
4 changed files with 30 additions and 30 deletions

View file

@ -19,7 +19,7 @@
static XrResult
oxr_swapchain_d3d11_enumerate_images(struct oxr_logger *log,
d3d11_enumerate_images(struct oxr_logger *log,
struct oxr_swapchain *sc,
uint32_t count,
XrSwapchainImageBaseHeader *images)
@ -49,7 +49,7 @@ oxr_swapchain_d3d11_create(struct oxr_logger *log,
}
// Set our API specific function(s).
sc->enumerate_images = oxr_swapchain_d3d11_enumerate_images;
sc->enumerate_images = d3d11_enumerate_images;
*out_swapchain = sc;

View file

@ -20,7 +20,7 @@
static XrResult
oxr_swapchain_d3d12_enumerate_images(struct oxr_logger *log,
d3d12_enumerate_images(struct oxr_logger *log,
struct oxr_swapchain *sc,
uint32_t count,
XrSwapchainImageBaseHeader *images)
@ -57,7 +57,7 @@ oxr_swapchain_d3d12_create(struct oxr_logger *log,
}
// Set our API specific function(s).
sc->enumerate_images = oxr_swapchain_d3d12_enumerate_images;
sc->enumerate_images = d3d12_enumerate_images;
*out_swapchain = sc;

View file

@ -22,7 +22,7 @@
#if defined(XR_USE_GRAPHICS_API_OPENGL)
static XrResult
oxr_swapchain_gl_enumerate_images_gl(struct oxr_logger *log,
gl_enumerate_images_gl(struct oxr_logger *log,
struct oxr_swapchain *sc,
uint32_t count,
XrSwapchainImageOpenGLKHR *images)
@ -42,7 +42,7 @@ oxr_swapchain_gl_enumerate_images_gl(struct oxr_logger *log,
#if defined(XR_USE_GRAPHICS_API_OPENGL_ES)
static XrResult
oxr_swapchain_gl_enumerate_images_gles(struct oxr_logger *log,
gl_enumerate_images_gles(struct oxr_logger *log,
struct oxr_swapchain *sc,
uint32_t count,
XrSwapchainImageOpenGLESKHR *images)
@ -60,7 +60,7 @@ oxr_swapchain_gl_enumerate_images_gles(struct oxr_logger *log,
#endif // XR_USE_GRAPHICS_API_OPENGL_ES
static XrResult
oxr_swapchain_gl_enumerate_images(struct oxr_logger *log,
gl_enumerate_images(struct oxr_logger *log,
struct oxr_swapchain *sc,
uint32_t count,
XrSwapchainImageBaseHeader *images)
@ -69,11 +69,11 @@ oxr_swapchain_gl_enumerate_images(struct oxr_logger *log,
switch (images[0].type) {
#if defined(XR_USE_GRAPHICS_API_OPENGL)
case XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR:
return oxr_swapchain_gl_enumerate_images_gl(log, sc, count, (XrSwapchainImageOpenGLKHR *)images);
return gl_enumerate_images_gl(log, sc, count, (XrSwapchainImageOpenGLKHR *)images);
#endif // XR_USE_GRAPHICS_API_OPENGL
#if defined(XR_USE_GRAPHICS_API_OPENGL_ES)
case XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR:
return oxr_swapchain_gl_enumerate_images_gles(log, sc, count, (XrSwapchainImageOpenGLESKHR *)images);
return gl_enumerate_images_gles(log, sc, count, (XrSwapchainImageOpenGLESKHR *)images);
#endif // XR_USE_GRAPHICS_API_OPENGL_ES
default: return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, "Unsupported XrSwapchainImageBaseHeader type");
}
@ -94,7 +94,7 @@ oxr_swapchain_gl_create(struct oxr_logger *log,
}
// Set our API specific function(s).
sc->enumerate_images = oxr_swapchain_gl_enumerate_images;
sc->enumerate_images = gl_enumerate_images;
*out_swapchain = sc;

View file

@ -17,7 +17,7 @@
static XrResult
oxr_swapchain_vk_enumerate_images(struct oxr_logger *log,
vk_enumerate_images(struct oxr_logger *log,
struct oxr_swapchain *sc,
uint32_t count,
XrSwapchainImageBaseHeader *images)
@ -47,7 +47,7 @@ oxr_swapchain_vk_create(struct oxr_logger *log,
}
// Set our API specific function(s).
sc->enumerate_images = oxr_swapchain_vk_enumerate_images;
sc->enumerate_images = vk_enumerate_images;
*out_swapchain = sc;