org.lwjgl.vulkan.KHRShaderDrawParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
/**
* This extension adds support for the following SPIR-V extension in Vulkan:
*
*
* - SPV_KHR_shader_draw_parameters
*
*
* The extension provides access to three additional built-in shader variables in Vulkan:
*
*
* - {@code BaseInstance}, which contains the firstInstance parameter passed to draw commands,
* - {@code BaseVertex}, which contains the firstVertex/vertexOffset parameter passed to draw commands, and
* - {@code DrawIndex}, 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 {@code GL_ARB_shader_draw_parameters} can map to these SPIR-V built-in decorations:
*
*
* - in int gl_BaseInstanceARB; → {@code BaseInstance},
* - in int gl_BaseVertexARB → {@code BaseVertex}, and
* - in int gl_DrawIDARB; → {@code DrawIndex}.
*
*
*
* - Name String
* - {@code VK_KHR_shader_draw_parameters}
* - Extension Type
* - Device extension
* - Registered Extension Number
* - 64
* - Revision
* - 1
* - Extension and Version Dependencies
*
* - Requires Vulkan 1.0
*
* - Contact
*
* - Daniel Koch @dgkoch
*
* - Last Modified Date
* - 2016-10-05
* - IP Status
* - No known IP claims.
* - Interactions and External Dependencies
*
* - Requires the SPV_KHR_shader_draw_parameters SPIR-V extension.
* - Requires GL_ARB_shader_draw_parameters for GLSL source languages.
*
* - Contributors
*
* - Daniel Koch, NVIDIA Corporation
* - Jeff Bolz, NVIDIA
* - Daniel Rakos, AMD
* - Jan-Harald Fredriksen, ARM
* - John Kessenich, Google
* - Stuart Smith, IMG
*
*
*/
public final class KHRShaderDrawParameters {
/** The extension specification version. */
public static final int VK_KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION = 1;
/** The extension name. */
public static final String VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME = "VK_KHR_shader_draw_parameters";
private KHRShaderDrawParameters() {}
}