org.lwjgl.opengl.NVConservativeRasterDilate Maven / Gradle / Ivy
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
/**
* Native bindings to the NV_conservative_raster_dilate extension.
*
* This extension extends the conservative rasterization funtionality provided by NV_conservative_raster. It provides a new control to generate an
* "over-conservative" rasterization by dilating primitives prior to rasterization.
*
* When using conservative raster to bin geometry, this extension provides a programmable overlap region between adjacent primitives. Regular
* rasterization bins triangles with a shared edge uniquely into pixels. Conservative raster has a one-pixel overlap along the shared edge. Using a
* half-pixel raster dilation, this overlap region increases to two pixels.
*
* Requires {@link NVConservativeRaster NV_conservative_raster}.
*/
public class NVConservativeRasterDilate {
/** Accepted by the {@code pname} parameter of ConservativeRasterParameterfNV, GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv, and GetDoublev. */
public static final int
GL_CONSERVATIVE_RASTER_DILATE_NV = 0x9379,
GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV = 0x937A,
GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV = 0x937B;
static { GL.initialize(); }
protected NVConservativeRasterDilate() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glConservativeRasterParameterfNV
);
}
// --- [ glConservativeRasterParameterfNV ] ---
public static native void glConservativeRasterParameterfNV(@NativeType("GLenum") int pname, @NativeType("GLfloat") float value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy