public final class KHRShaderDrawParameters
extends java.lang.Object
SPV_KHR_shader_draw_parametersThe extension provides access to three additional built-in shader variables in Vulkan:
BaseInstance, which contains the firstInstance parameter passed to draw commands,BaseVertex, which contains the firstVertex or vertexOffset parameter passed to draw commands, andDrawIndex, which contains the index of the draw call currently being processed from an indirect draw call.When using GLSL source-based shader languages, the following variables from GL_ARB_shader_draw_parameters can map to these SPIR-V built-in decorations:
in int gl_BaseInstanceARB; → BaseInstance,in int gl_BaseVertexARB; → BaseVertex, andin int gl_DrawIDARB; → DrawIndex.All functionality in this extension is included in core Vulkan 1.1, however a feature bit was added to distinguish whether it is actually available or not.
VK_KHR_shader_draw_parametersSPV_KHR_shader_draw_parameters SPIR-V extension.GL_ARB_shader_draw_parameters for GLSL source languages.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME
The extension name.
|
static int |
VK_KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION
The extension specification version.
|
public static final int VK_KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION
public static final java.lang.String VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME
Copyright LWJGL. All Rights Reserved. License terms.