void get_sampler_parameterIiv (NegativeTestContext& ctx)
{
- if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
+ if (!supportsES32orGL45(ctx))
throw tcu::NotSupportedError("glGetSamplerParameterIiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLuint sampler = 0x1234;
- GLint borderColor = 0x1234;
+ GLuint sampler = 0x1234;
+ GLint borderColor[] = { 0x1234, 0x4123, 0x3412, 0x2341 };
ctx.beginSection("GL_INVALID_OPERATION is generated if sampler is not the name of a sampler object returned from a previous call to ctx.glGenSamplers.");
- ctx.glGetSamplerParameterIiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor);
+ ctx.glGetSamplerParameterIiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor[0]);
ctx.expectError(GL_INVALID_OPERATION);
ctx.endSection();
void get_sampler_parameterIuiv (NegativeTestContext& ctx)
{
- if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
+ if (!supportsES32orGL45(ctx))
throw tcu::NotSupportedError("glGetSamplerParameterIuiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLuint sampler = 0x1234;
- GLuint borderColor = 0x1234;
+ GLuint sampler = 0x1234;
+ GLuint borderColor[] = { 0x1234, 0x4123, 0x3412, 0x2341 };
ctx.beginSection("GL_INVALID_OPERATION is generated if sampler is not the name of a sampler object returned from a previous call to ctx.glGenSamplers.");
- ctx.glGetSamplerParameterIuiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor);
+ ctx.glGetSamplerParameterIuiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor[0]);
ctx.expectError(GL_INVALID_OPERATION);
ctx.endSection();
void texparameterIiv (NegativeTestContext& ctx)
{
- if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
+ if (!supportsES32orGL45(ctx))
throw tcu::NotSupportedError("glTexParameterIiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX };
+ GLint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX, GL_INVALID_ENUM, GL_INVALID_ENUM };
ctx.beginSection("GL_INVALID_ENUM is generated if target is not a valid target.");
ctx.glTexParameterIiv(0, GL_DEPTH_STENCIL_TEXTURE_MODE, textureMode);
ctx.expectError(GL_INVALID_ENUM);
void texparameterIuiv (NegativeTestContext& ctx)
{
- if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
+ if (!supportsES32orGL45(ctx))
throw tcu::NotSupportedError("glTexParameterIuiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLuint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX };
+ GLuint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX, GL_INVALID_ENUM, GL_INVALID_ENUM };
ctx.beginSection("GL_INVALID_ENUM is generated if target is not a valid target.");
ctx.glTexParameterIuiv(0, GL_DEPTH_STENCIL_TEXTURE_MODE, textureMode);
ctx.expectError(GL_INVALID_ENUM);