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 sampler = r->compute.default_sampler;
VkSampler src_samplers[2] = {sampler, 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}; VkSampler distortion_samplers[6] = {sampler, sampler, sampler, sampler, sampler, sampler};
update_compute_discriptor_set( // update_compute_discriptor_set( //

View file

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

View file

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