c/render: Improve word choice/clarity

This commit is contained in:
Ryan Pavlik 2022-05-17 15:26:50 -05:00
parent 973b8f3b7f
commit 25cb2e1790
3 changed files with 20 additions and 20 deletions

View file

@ -649,7 +649,7 @@ render_compute_clear(struct render_compute *crc, //
VkSampler sampler = r->compute.default_sampler;
VkSampler src_samplers[2] = {sampler, sampler};
VkImageView src_image_views[2] = {r->dummy.color.image_view, r->dummy.color.image_view};
VkImageView src_image_views[2] = {r->scratch.color.image_view, r->scratch.color.image_view};
VkSampler distortion_samplers[6] = {sampler, sampler, sampler, sampler, sampler, sampler};
update_compute_discriptor_set( //

View file

@ -257,7 +257,7 @@ struct render_resources
VkImageView image_view;
VkDeviceMemory memory;
} color;
} dummy;
} scratch;
struct
{
@ -276,7 +276,7 @@ struct render_resources
//! Uniform data binding.
uint32_t ubo_binding;
//! Dummy sampler for null images.
//! Default sampler for null images.
VkSampler default_sampler;
//! Descriptor set layout for compute distortion.

View file

@ -568,7 +568,7 @@ render_resources_init(struct render_resources *r,
/*
* Dummy
* Simulated
*/
{
@ -584,20 +584,20 @@ render_resources_init(struct render_resources *r,
.layerCount = 1,
};
C(vk_create_image_simple( //
vk, // vk_bundle
extent, // extent
format, // format
usage, // usage
&r->dummy.color.memory, // out_mem
&r->dummy.color.image)); // out_image
C(vk_create_image_simple( //
vk, // vk_bundle
extent, // extent
format, // format
usage, // usage
&r->scratch.color.memory, // out_mem
&r->scratch.color.image)); // out_image
C(vk_create_view( //
vk, // vk_bundle
r->dummy.color.image, // image
format, // format
subresource_range, // subresource_range
&r->dummy.color.image_view)); // out_view
C(vk_create_view( //
vk, // vk_bundle
r->scratch.color.image, // image
format, // format
subresource_range, // subresource_range
&r->scratch.color.image_view)); // out_view
}
@ -814,9 +814,9 @@ render_resources_close(struct render_resources *r)
struct vk_bundle *vk = r->vk;
D(ImageView, r->dummy.color.image_view);
D(Image, r->dummy.color.image);
DF(Memory, r->dummy.color.memory);
D(ImageView, r->scratch.color.image_view);
D(Image, r->scratch.color.image);
DF(Memory, r->scratch.color.memory);
D(DescriptorSetLayout, r->mesh.descriptor_set_layout);
D(PipelineLayout, r->mesh.pipeline_layout);
D(PipelineCache, r->pipeline_cache);