From 8a900f601aa466b6ffc711742b1c75872ac2cf23 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Thu, 20 Oct 2016 06:50:37 -0600 Subject: layers:Rename SAMPLER_NODE->SAMPLER_STATE --- layers/descriptor_sets.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'layers/descriptor_sets.cpp') diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index 500957c0..6c8be9c7 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -689,7 +689,7 @@ cvdescriptorset::SamplerDescriptor::SamplerDescriptor(const VkSampler *immut) : } // Validate given sampler. Currently this only checks to make sure it exists in the samplerMap bool cvdescriptorset::ValidateSampler(const VkSampler sampler, const core_validation::layer_data *dev_data) { - return (getSamplerNode(dev_data, sampler) != nullptr); + return (getSamplerState(dev_data, sampler) != nullptr); } bool cvdescriptorset::ValidateImageUpdate(VkImageView image_view, VkImageLayout image_layout, VkDescriptorType type, @@ -874,9 +874,9 @@ void cvdescriptorset::SamplerDescriptor::CopyUpdate(const Descriptor *src) { void cvdescriptorset::SamplerDescriptor::BindCommandBuffer(const core_validation::layer_data *dev_data, GLOBAL_CB_NODE *cb_node) { if (!immutable_) { - auto sampler_node = getSamplerNode(dev_data, sampler_); - if (sampler_node) - core_validation::AddCommandBufferBindingSampler(cb_node, sampler_node); + auto sampler_state = getSamplerState(dev_data, sampler_); + if (sampler_state) + core_validation::AddCommandBufferBindingSampler(cb_node, sampler_state); } } @@ -921,9 +921,9 @@ void cvdescriptorset::ImageSamplerDescriptor::BindCommandBuffer(const core_valid GLOBAL_CB_NODE *cb_node) { // First add binding for any non-immutable sampler if (!immutable_) { - auto sampler_node = getSamplerNode(dev_data, sampler_); - if (sampler_node) - core_validation::AddCommandBufferBindingSampler(cb_node, sampler_node); + auto sampler_state = getSamplerState(dev_data, sampler_); + if (sampler_state) + core_validation::AddCommandBufferBindingSampler(cb_node, sampler_state); } // Add binding for image auto iv_state = getImageViewState(dev_data, image_view_); -- cgit v1.2.3