GLES3.0中文API-glGenSamplers

名称

glGenSamplers —生成采样器对象名称

C规范

void glGenSamplers(GLsizei n,GLuint * samplers);

参数

n
指定要生成的采样器对象名称的数量。

samplers
指定一个数组,在其中存储生成的采样器对象名称。

描述

glGenSamplers在采样器中返回n个采样器对象名称。 不能保证名称形成连续的整数集。 但是,可以保证在调用glGenSamplers之前,未使用任何返回的名称。

调用glGenSamplers返回的采样器对象名称不会由后续调用返回,除非首先使用glDeleteSamplers删除它们。

仅出于glGenSamplers的目的,采样器中返回的名称被标记为已使用,但仅当它们首次用作glBindSampler,glSamplerParameter *,glGetSamplerParameter *或glIsSampler的参数时,它们才获取状态和类型。

错误

GL_INVALID_VALUE is generated if n is negative.

相关 Gets

glIsSampler, glGetSamplerParameter

API 支持版本

函数名 2.0 3.0 3.1 3.2
glGenSamplers -

另见

glBindSampler, glDeleteSamplers, glIsSampler, glGetSamplerParameter, glSamplerParameter

版权

https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGenSamplers.xhtml
Copyright © 2010-2015 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

发布了215 篇原创文章 · 获赞 0 · 访问量 824

猜你喜欢

转载自blog.csdn.net/MSK1111/article/details/103114195
今日推荐