floooh / sokol-tools

Command line tools for use with sokol headers
MIT License
219 stars 54 forks source link

There may be a typo here, there is only backendGles3 in the nim binding #97

Closed haoyu234 closed 1 year ago

haoyu234 commented 1 year ago

nim binding

type
  Backend* {.size:sizeof(int32).} = enum
    backendGlcore33,
    backendGles3,   # here
    backendD3d11,
    backendMetalIos,
    backendMetalMacos,
    backendMetalSimulator,
    backendWgpu,
    backendDummy,
floooh commented 1 year ago

Thanks! The dot is indeed a typo, but glsl100 and GLES2 support in sokol-shdc are basically left-overs. GLES2 support had been removed in sokol-shdc fairly recently, but I hadn't removed those bits yet in sokol-shdc.

Keeping glsl100 output support in sokol-shdc would block some nice GLSL features though, for instance the textureSize() builtin (currently this triggers an internal SPIRVCross error), so I'll probably remove glsl100 alltogether pretty soon.

In any case, I'll merge your PR, but please don't rely on glsl100 output since that will be removed 'pretty soon now'.