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:
*
*
* - {@code SPV_KHR_shader_draw_parameters}
*
*
* The extension provides access to three additional built-in shader variables in Vulkan:
*
*
* - {@code BaseInstance}, which contains the {@code firstInstance} parameter passed to drawing commands,
* - {@code BaseVertex}, which contains the {@code firstVertex} or {@code vertexOffset} parameter passed to drawing 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:
*
*
* - {@code in int gl_BaseInstanceARB;} → {@code BaseInstance},
* - {@code in int gl_BaseVertexARB;} → {@code BaseVertex}, and
* - {@code in int gl_DrawIDARB;} → {@code DrawIndex}.
*
*
* Promotion to Vulkan 1.1
*
* 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_parameters
*
*
* - 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
*
* - Deprecation state
*
* - Promoted to Vulkan 1.1
*
* - Contact
*
* - Daniel Koch dgkoch
*
*
*
* Other Extension Metadata
*
*
* - Last Modified Date
* - 2017-09-05
* - IP Status
* - No known IP claims.
* - Interactions and External Dependencies
*
* - This extension requires {@code SPV_KHR_shader_draw_parameters}
* - This extension provides API support for {@code GL_ARB_shader_draw_parameters}
* - Promoted to Vulkan 1.1 Core
*
* - 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() {}
}