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 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( //
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue