*/}}
瀏覽代碼

[INCOMPLETE] GLES change format?

YimingWu 6 月之前
父節點
當前提交
033d83ad37
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      la_tns_kernel.c
  2. 1 0
      resources/la_tns_shaders.cpp

+ 1 - 0
la_tns_kernel.c

@@ -1771,6 +1771,7 @@ void tnsConfigure2DTexture(tnsTexture *t){
         int type=isDepth?GL_UNSIGNED_INT:GL_UNSIGNED_BYTE;
         if(t->GLTexBitsType==GL_RGBA16UI){ format=GL_RGBA_INTEGER; type=GL_UNSIGNED_SHORT; t->IsUIntTexture=1; }
         if(t->GLTexBitsType==GL_RGBA16F){ format=GL_RGBA; type=GL_FLOAT; }
+        if(t->GLTexBitsType==GL_R32UI){ format=GL_RED_INTEGER; type=GL_UNSIGNED_INT; t->IsUIntTexture=1; }
         if(t->GLTexBitsType==GL_DEPTH_STENCIL){ format=GL_DEPTH_STENCIL; type=GL_UNSIGNED_INT_24_8; t->GLTexBitsType=GL_DEPTH24_STENCIL8; }
 #ifndef LAGUI_ANDROID
         if(isDepth){t->GLTexBitsType=GL_DEPTH_COMPONENT24; type=GL_UNSIGNED_INT;}

+ 1 - 0
resources/la_tns_shaders.cpp

@@ -658,6 +658,7 @@ void main(){
 
 extern "C" const char* LA_IMM_FRAGMENT_SHADER = R"(#version 310 es
 precision highp float;
+precision highp int;
 uniform highp sampler2D TexColor;
 uniform highp usampler2D TexColorUI;
 uniform highp sampler2DMS TexColorMS;