Skip to content

Refactor Texture into Texture2D and TextureCube #26

@Light7734

Description

@Light7734

As of now we have an enum bvk::Texture::Type that indicates the type of the texture, however this seems like a code smell.
first, the enum is never used anywhere (only assigned in different places).
second, enumerations and conditionals that indicate different types should really be refactored out by polymorphism.
third, TextureCubes and Texture2Ds have very different use cases, and may additionally have different query functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    behBehaviour changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions