[Impeller] Update API name to indicate descriptor set registrations. (flutter/engine#40922)

[Impeller] Update API name to indicate descriptor set registrations.
This commit is contained in:
Chinmay Garde 2023-04-04 15:32:49 -07:00 committed by GitHub
parent e30a98acbc
commit f79930b74c
3 changed files with 7 additions and 7 deletions

View File

@ -93,7 +93,7 @@ struct PipelineBuilder {
<< VertexShader::kLabel << "'.";
return false;
}
if (!vertex_descriptor->SetDescriptorSetLayouts(
if (!vertex_descriptor->RegisterDescriptorSetLayouts(
VertexShader::kDescriptorSetLayouts)) {
VALIDATION_LOG << "Cound not configure vertex descriptor set layout for"
" pipeline named '"
@ -101,7 +101,7 @@ struct PipelineBuilder {
return false;
}
if (!vertex_descriptor->SetDescriptorSetLayouts(
if (!vertex_descriptor->RegisterDescriptorSetLayouts(
FragmentShader::kDescriptorSetLayouts)) {
VALIDATION_LOG << "Cound not configure vertex descriptor set layout for"
" pipeline named '"

View File

@ -20,7 +20,7 @@ bool VertexDescriptor::SetStageInputs(
return true;
}
bool VertexDescriptor::SetDescriptorSetLayouts(
bool VertexDescriptor::RegisterDescriptorSetLayouts(
const DescriptorSetLayout desc_set_layout[],
size_t count) {
desc_set_layouts_.reserve(desc_set_layouts_.size() + count);

View File

@ -37,16 +37,16 @@ class VertexDescriptor final : public Comparable<VertexDescriptor> {
}
template <size_t Size>
bool SetDescriptorSetLayouts(
bool RegisterDescriptorSetLayouts(
const std::array<DescriptorSetLayout, Size>& inputs) {
return SetDescriptorSetLayouts(inputs.data(), inputs.size());
return RegisterDescriptorSetLayouts(inputs.data(), inputs.size());
}
bool SetStageInputs(const ShaderStageIOSlot* const stage_inputs[],
size_t count);
bool SetDescriptorSetLayouts(const DescriptorSetLayout desc_set_layout[],
size_t count);
bool RegisterDescriptorSetLayouts(const DescriptorSetLayout desc_set_layout[],
size_t count);
const std::vector<ShaderStageIOSlot>& GetStageInputs() const;