5#ifndef FLUTTER_IMPELLER_CORE_RESOURCE_BINDER_H_
6#define FLUTTER_IMPELLER_CORE_RESOURCE_BINDER_H_
36 std::shared_ptr<const Texture>
texture,
37 const std::unique_ptr<const Sampler>& sampler) = 0;
An interface for binding resources. This is implemented by |Command| and |ComputeCommand| to make GPU...
virtual ~ResourceBinder()=default
virtual bool BindResource(ShaderStage stage, DescriptorType type, const SampledImageSlot &slot, const ShaderMetadata &metadata, std::shared_ptr< const Texture > texture, const std::unique_ptr< const Sampler > &sampler)=0
virtual bool BindResource(ShaderStage stage, DescriptorType type, const ShaderUniformSlot &slot, const ShaderMetadata &metadata, BufferView view)=0
Metadata required to bind a combined texture and sampler.