Skip to content

Add New View and Viewer: IndirectBufferView #48

Description

@MuGdxy
template<bool IsConst, typename IndexType, typename ValueType>
class IndirectBufferView
{
using value_type = ValueType;
const IndexType* m_index_buffer;
size_t m_index_buffer_offset;
size_t m_index_buffer_size;
auto_const_t<ValueType>* m_value_buffer;
size_t m_value_buffer_offset;
size_t m_value_buffer_size;
};
IndirectBufferView[i] -> 
{
    auto offset = m_index_buffer[m_index_buffer_offset + i];
    return m_value_buffer[m_value_buffer_offset + offset];
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions