This extension adds a "conservative" rasterization mode where any pixel that is partially covered, even if no sample location is covered, is treated as fully covered and a corresponding fragment will be shaded.
A new control is also added to modify window coordinate snapping precision.
These controls can be used to implement "binning" to a low-resolution render target, for example to determine which tiles of a sparse texture need to be populated. An app can construct a framebuffer where there is one pixel per tile in the sparse texture, and adjust the number of subpixel bits such that snapping occurs to the same effective grid as when rendering to the sparse texture. Then triangles should cover (at least) the same pixels in the low-res framebuffer as they do tiles in the sparse texture.
Requires GLES 2..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_CONSERVATIVE_RASTERIZATION_NV
Accepted by the |
| public static final int | GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV
Accepted by the |
| public static final int | GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV
Accepted by the |
| public static final int | GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native void |
| GL_CONSERVATIVE_RASTERIZATION_NV | back to summary |
|---|---|
| public static final int GL_CONSERVATIVE_RASTERIZATION_NV Accepted by the | |
| GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV | back to summary |
|---|---|
| public static final int GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV Accepted by the | |
| GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV | back to summary |
|---|---|
| public static final int GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV Accepted by the | |
| GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV | back to summary |
|---|---|
| public static final int GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV Accepted by the | |
| NVConservativeRaster | back to summary |
|---|---|
| protected NVConservativeRaster() | |
| glSubpixelPrecisionBiasNV | back to summary |
|---|---|
| public static native void glSubpixelPrecisionBiasNV(int xbits, int ybits) | |