mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-06-18 02:33:19 +08:00
* update effect.hideInEditor * swapchain refactor * webgl multi draw * implicit depth/stencil format * native adapt * explicit resizable texture * DrawInfo in InputAssembler * device cached states * sync defines * gfx: empty backend * update playground * remove profiler camera * update effect types * fix pass.resetUniform
59 lines
2.2 KiB
TypeScript
59 lines
2.2 KiB
TypeScript
interface WEBGL_multi_draw {
|
|
multiDrawArraysWEBGL(mode: GLenum,
|
|
firstsList: GLint[] | Int32Array, firstsOffset: GLuint,
|
|
countsList: GLsizei[] | Int32Array, countsOffset: GLuint,
|
|
drawCount: GLsizei
|
|
): void;
|
|
multiDrawElementsWEBGL(mode: GLenum,
|
|
countsList: GLint[] | Int32Array, countsOffset: GLuint,
|
|
type: GLenum,
|
|
offsetsList: GLsizei[] | Int32Array, OffsetsOffset: GLuint,
|
|
drawCount: GLsizei
|
|
): void;
|
|
multiDrawArraysInstancedWEBGL(mode: GLenum,
|
|
firstsList: GLint[] | Int32Array, firstsOffset: GLuint,
|
|
countsList: GLsizei[] | Int32Array, countsOffset: GLuint,
|
|
instanceCountsList: GLsizei[] | Int32Array, instanceCountsOffset: GLuint,
|
|
drawCount: GLsizei
|
|
): void;
|
|
multiDrawElementsInstancedWEBGL(mode: GLenum,
|
|
countsList: GLint[] | Int32Array, countsOffset: GLuint,
|
|
type: GLenum,
|
|
offsetsList: GLsizei[] | Int32Array, OffsetsOffset: GLuint,
|
|
instanceCountsList: GLsizei[] | Int32Array, instanceCountsOffset: GLuint,
|
|
drawCount: GLsizei
|
|
): void;
|
|
}
|
|
|
|
interface EXT_color_buffer_half_float {
|
|
readonly RGBA16F_EXT: GLenum;
|
|
readonly RGB16F_EXT: GLenum;
|
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
|
|
}
|
|
|
|
// note that ETC1 is not supported with the compressedTexSubImage2D() method
|
|
interface WEBGL_compressed_texture_etc1 {
|
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
}
|
|
|
|
interface WEBGL_compressed_texture_etc {
|
|
readonly COMPRESSED_R11_EAC: GLenum;
|
|
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
|
|
readonly COMPRESSED_RG11_EAC: GLenum;
|
|
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
|
|
readonly COMPRESSED_RGB8_ETC2: GLenum;
|
|
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
|
|
readonly COMPRESSED_SRGB8_ETC2: GLenum;
|
|
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
|
|
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
|
|
}
|
|
|
|
interface WEBGL_compressed_texture_pvrtc {
|
|
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
}
|