mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 11:25:26 +00:00
c/render: Improve word choice/clarity
This commit is contained in:
parent
973b8f3b7f
commit
25cb2e1790
|
@ -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( //
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue