AODQ / pulchritude-engine

lingua franca game engine
MIT License
0 stars 0 forks source link

PuleGfx - separate sampler+texture #8

Open AODQ opened 2 years ago

AODQ commented 2 years ago

Description

Currently samplers are created alongside the texture. This is because I initially thought OpenGL did not support their separation, however the OpenGL standard introduced this in some 4.x update.


Proposed ABI Changes

  typedef struct {
    PuleGfxGpuImage image;
+   PuleGfxGpuSampler sampler;
    uint32_t mipmapLevel; // default 0
  } PuleGfxFramebufferImageAttachment;
  typedef struct {
    uint32_t width;
    uint32_t height;
    PuleGfxImageTarget target;
    PuleGfxImageByteFormat byteFormat;
-   PuleGfxSampler sampler;
    void const * optionalInitialData;
  } PuleGfxImageCreateInfo;