Light7734 / BindlessVK

Vulkan renderer with bindless design and render graphs.
https://light7734.com
20 stars 1 forks source link

Refactor Texture into Texture2D and TextureCube #26

Open Light7734 opened 1 year ago

Light7734 commented 1 year ago

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.