/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include namespace vkcompute { // // For objects in the graph // void bind_tensor_to_descriptor_set( api::vTensor& tensor, vkapi::PipelineBarrier& pipeline_barrier, const vkapi::MemoryAccessFlags accessType, vkapi::DescriptorSet& descriptor_set, const uint32_t idx); uint32_t bind_values_to_descriptor_set( ComputeGraph* graph, const std::vector& args, vkapi::PipelineBarrier& pipeline_barrier, vkapi::DescriptorSet& descriptor_set, const uint32_t base_idx); // // For objects NOT in the graph // uint32_t bind_params_to_descriptor_set( const vkapi::ParamsBindList& params, vkapi::DescriptorSet& descriptor_set, const uint32_t base_idx); void bind_staging_to_descriptor_set( api::StagingBuffer& staging, vkapi::DescriptorSet& descriptor_set, const uint32_t idx); } // namespace vkcompute