c/render: Remove compute default_sampler

This commit is contained in:
Jakob Bornecrantz 2023-05-18 19:28:07 +01:00
parent 27ba15cb24
commit 647fd366c5
2 changed files with 0 additions and 11 deletions

View file

@ -329,9 +329,6 @@ struct render_resources
//! Uniform data binding.
uint32_t ubo_binding;
//! Default sampler for null images.
VkSampler default_sampler;
struct
{
//! Descriptor set layout for compute.

View file

@ -737,12 +737,6 @@ render_resources_init(struct render_resources *r,
VkMemoryPropertyFlags memory_property_flags =
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
C(vk_create_sampler( //
vk, // vk_bundle
VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, // clamp_mode
&r->compute.default_sampler)); // out_sampler
struct vk_descriptor_pool_info compute_pool_info = {
.uniform_per_descriptor_count = 1,
// layer images
@ -1018,8 +1012,6 @@ render_resources_close(struct render_resources *r)
D(Pipeline, r->compute.clear.pipeline);
D(Sampler, r->compute.default_sampler);
render_distortion_images_close(r);
render_buffer_close(vk, &r->compute.clear.ubo);
render_buffer_close(vk, &r->compute.layer.ubo);