src/third_party/angle/src/libANGLE/renderer/glslang_wrapper_utils.cpp
// TODO: http://anglebug.com/4512: Need to combine descriptor set bindings across
// shader stages.
anglebug.com/4512: Need to combine descriptor set bindings across
shader stages.
anglebug . com / 4512 : Need to combine descriptor set bindings across shader stages .
void AssignAtomicCounterBufferBindings(const GlslangSourceOptions &options,
                                       const gl::ProgramExecutable &programExecutable,
                                       const std::vector<gl::AtomicCounterBuffer> &buffers,
                                       const gl::ShaderType shaderType,
                                       GlslangProgramInterfaceInfo *programInterfaceInfo,
                                       ShaderMapInterfaceVariableInfoMap *variableInfoMapOut)
{
    if (buffers.size() == 0)
    {
        return;
    }
    if (programExecutable.hasLinkedShaderStage(shaderType))
    {
        AddResourceInfo(&(*variableInfoMapOut)[shaderType], sh::vk::kAtomicCountersBlockName,
                        programInterfaceInfo->shaderResourceDescriptorSetIndex,
                        programInterfaceInfo->currentShaderResourceBindingIndex, shaderType);
        ++programInterfaceInfo->currentShaderResourceBindingIndex;
    }
}
void AssignAtomicCounterBufferBindings ( const GlslangSourceOptions & options , const gl :: ProgramExecutable & programExecutable , const std :: vector < gl :: AtomicCounterBuffer > & buffers , const gl :: ShaderType shaderType , GlslangProgramInterfaceInfo * programInterfaceInfo , ShaderMapInterfaceVariableInfoMap * variableInfoMapOut ) { if ( buffers . size ( ) == 0 ) { return ; } if ( programExecutable . hasLinkedShaderStage ( shaderType ) ) { AddResourceInfo ( & ( * variableInfoMapOut ) [ shaderType ] , sh :: vk :: kAtomicCountersBlockName , programInterfaceInfo -> shaderResourceDescriptorSetIndex , programInterfaceInfo -> currentShaderResourceBindingIndex , shaderType ) ; ++ programInterfaceInfo -> currentShaderResourceBindingIndex ; } }
TODO: http://anglebug.com/4512: Need to combine descriptor set bindings across
shader stages.
TODO : http : // anglebug . com / 4512 : Need to combine descriptor set bindings across shader stages .