All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.KHRShaderDrawParameters Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.3.4
Show newest version
/*
 * 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
*
*
Contact
*
*
* *
Other Extension Metadata
* *
*
Last Modified Date
*
2017-09-05
*
IP Status
*
No known IP claims.
*
Interactions and External Dependencies
*
*
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() {} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy