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:
 * 
 * 
    *
  • 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
*
*
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