mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[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:
parent
e30a98acbc
commit
f79930b74c
@ -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 '"
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user