BindlessVK icon indicating copy to clipboard operation
BindlessVK copied to clipboard

Refactor Texture into Texture2D and TextureCube

Open Light7734 opened this issue 2 years ago • 0 comments

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.

Light7734 avatar Jun 27 '23 13:06 Light7734