Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2023-04-05 14:38:26 +10:00
parent d683665095
commit 440cccecdc
22 changed files with 37 additions and 36 deletions

View File

@@ -2192,7 +2192,7 @@ void present(MTLRenderPassDescriptor *blit_descriptor,
/* Release synchronization primitive for current frame to avoid cross-frame dependencies.
* We require MTLEvents to ensure correct ordering of workload submissions within a frame,
* however, we should not create long chains of dependencies spanning several drawables as any
* temporary stalls can then trigger erroneous GPU timeouts in non-dependent submsisions. */
* temporary stalls can then trigger erroneous GPU timeouts in non-dependent submissions. */
[MTLCommandBufferManager::sync_event release];
MTLCommandBufferManager::sync_event = nil;
MTLCommandBufferManager::event_signal_val = 0;

View File

@@ -249,8 +249,8 @@ static void detect_workarounds()
return;
}
/* Only use main context when running inside renderdoc. Renderdoc requires that all calls are
* from the same context.*/
/* Only use main context when running inside RenderDoc.
* RenderDoc requires that all calls are* from the same context. */
if (G.debug & G_DEBUG_GPU_RENDERDOC) {
GCaps.use_main_context_workaround = true;
}

View File

@@ -609,7 +609,7 @@ void convert_component(F32 &dst, const UnsignedNormalized<StorageType> &src)
dst.value = float(src.value) / scalar;
}
/* Copy the contents of src to dst with out performing any actual conversion.*/
/* Copy the contents of src to dst with out performing any actual conversion. */
template<typename DestinationType, typename SourceType>
void convert_component(DestinationType &dst, const SourceType &src)
{

View File

@@ -136,7 +136,7 @@ class VKDescriptorSetTracker : protected VKResourceTracker<VKDescriptorSet> {
};
private:
/** A list of bindings that needs to be updated.*/
/** A list of bindings that needs to be updated. */
Vector<Binding> bindings_;
VkDescriptorSetLayout layout_;

View File

@@ -241,7 +241,7 @@ void VKFrameBuffer::render_pass_create()
VK_ALLOCATION_CALLBACKS
/* Track first attachment for size.*/
/* Track first attachment for size. */
GPUAttachmentType first_attachment = GPU_FB_MAX_ATTACHMENT;
std::array<VkAttachmentDescription, GPU_FB_MAX_ATTACHMENT> attachment_descriptions;
@@ -276,7 +276,7 @@ void VKFrameBuffer::render_pass_create()
depth_location;
if (attachment.tex) {
/* Ensure texture is allocated to ensure the image view.*/
/* Ensure texture is allocated to ensure the image view. */
VKTexture &texture = *static_cast<VKTexture *>(unwrap(attachment.tex));
texture.ensure_allocated();
image_views[attachment_location] = texture.vk_image_view_handle();
@@ -346,7 +346,7 @@ void VKFrameBuffer::render_pass_create()
vkCreateRenderPass(
context.device_get(), &render_pass_info, vk_allocation_callbacks, &vk_render_pass_);
/* We might want to split framebuffer and render pass....*/
/* We might want to split frame-buffer and render pass. */
VkFramebufferCreateInfo framebuffer_create_info = {};
framebuffer_create_info.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO;
framebuffer_create_info.renderPass = vk_render_pass_;

View File

@@ -186,7 +186,7 @@ static VkImageUsageFlagBits to_vk_image_usage(const eGPUTextureUsage usage,
if (usage & GPU_TEXTURE_USAGE_ATTACHMENT) {
if (format_flag & (GPU_FORMAT_NORMALIZED_INTEGER | GPU_FORMAT_COMPRESSED)) {
/* These formats aren't supported as an attachment. When using GPU_TEXTURE_USAGE_DEFAULT they
* are still being evaluated to be attachable. So we need to skip them.*/
* are still being evaluated to be attachable. So we need to skip them. */
}
else {
if (format_flag & (GPU_FORMAT_DEPTH | GPU_FORMAT_STENCIL)) {

View File

@@ -17,10 +17,10 @@ class VKTexture : public Texture {
VkImageView vk_image_view_ = VK_NULL_HANDLE;
VmaAllocation allocation_ = VK_NULL_HANDLE;
/* Last image layout of the texture. Framebuffer and barriers can alter/require the actual layout
* to be changed. During this it requires to set the current layout in order to know which
/* Last image layout of the texture. Frame-buffer and barriers can alter/require the actual
* layout to be changed. During this it requires to set the current layout in order to know which
* conversion should happen. #current_layout_ keep track of the layout so the correct conversion
* can be done.*/
* can be done. */
VkImageLayout current_layout_ = VK_IMAGE_LAYOUT_UNDEFINED;
public: