xrt: Fix typos, clarify docs

This commit is contained in:
Rylie Pavlik 2023-12-04 11:53:32 -06:00
parent 9976a26f2f
commit 9c7851f076
4 changed files with 6 additions and 6 deletions
src/xrt
compositor/client
include/xrt
state_trackers/oxr

View file

@ -610,7 +610,7 @@ client_gl_compositor_init(struct client_gl_compositor *c,
GLint max_texture_size = 0;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_texture_size);
if (max_texture_size > 0) {
c->base.base.info.max_tetxure_size = (uint32_t)max_texture_size;
c->base.base.info.max_texture_size = (uint32_t)max_texture_size;
}
os_mutex_init(&c->context_mutex);

View file

@ -875,7 +875,7 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
struct vk_bundle *vk = &c->vk;
VkPhysicalDeviceProperties pdp;
vk->vkGetPhysicalDeviceProperties(vk->physical_device, &pdp);
c->base.base.info.max_tetxure_size = pdp.limits.maxImageDimension2D;
c->base.base.info.max_texture_size = pdp.limits.maxImageDimension2D;
}
if (!c->renderdoc_enabled) {

View file

@ -828,7 +828,7 @@ struct xrt_swapchain_create_info
uint32_t mip_count;
/*
* List of formats that could be use when creating views of the swapchain images.
* List of formats that could be used when creating views of the swapchain images.
* See XR_KHR_vulkan_swapchain_format_list and VK_KHR_image_format_list
*/
uint32_t format_count;
@ -872,8 +872,8 @@ struct xrt_compositor_info
//! Supported formats, never changes.
int64_t formats[XRT_MAX_SWAPCHAIN_FORMATS];
//! Max texture size that GPU supports, zero means any size.
uint32_t max_tetxure_size;
//! Max texture size that GPU supports (size of a single dimension), zero means any size.
uint32_t max_texture_size;
};
/*!

View file

@ -64,7 +64,7 @@ oxr_xrCreateSwapchain(XrSession session, const XrSwapchainCreateInfo *createInfo
OXR_VERIFY_ARG_NOT_ZERO(&log, createInfo->width);
OXR_VERIFY_ARG_NOT_ZERO(&log, createInfo->height);
const uint32_t max_dims = sess->compositor->info.max_tetxure_size;
const uint32_t max_dims = sess->compositor->info.max_texture_size;
if (max_dims != 0) {
if (createInfo->width > max_dims) {
return oxr_error(&log, XR_ERROR_VALIDATION_FAILURE, "(createInfo->width > %u) width too large",