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

org.lwjgl.vulkan.AMDTextureGatherBiasLod 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 two related features.
 * 
 * 

Firstly, support for the following SPIR-V extension in Vulkan is added:

* *
    *
  • SPV_AMD_texture_gather_bias_lod
  • *
* *

Secondly, the extension allows the application to query, which formats can be used together with the new function prototypes introduced by the SPIR-V extension.

* *
Examples
* *
 * struct VkTextureLODGatherFormatPropertiesAMD
 * {
 *     VkStructureType sType;
 *     const void*     pNext;
 *     VkBool32        supportsTextureGatherLODBiasAMD;
 * };
 * 
 * // ----------------------------------------------------------------------------------------
 * // How to detect if an image format can be used with the new function prototypes.
 * VkPhysicalDeviceImageFormatInfo2KHR   formatInfo;
 * VkImageFormatProperties2KHR           formatProps;
 * VkTextureLODGatherFormatPropertiesAMD textureLODGatherSupport;
 * 
 * textureLODGatherSupport.sType = VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD;
 * textureLODGatherSupport.pNext = nullptr;
 * 
 * formatInfo.sType  = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR;
 * formatInfo.pNext  = nullptr;
 * formatInfo.format = ...;
 * formatInfo.type   = ...;
 * formatInfo.tiling = ...;
 * formatInfo.usage  = ...;
 * formatInfo.flags  = ...;
 * 
 * formatProps.sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR;
 * formatProps.pNext = &textureLODGatherSupport;
 * 
 * vkGetPhysicalDeviceImageFormatProperties2KHR(physical_device, &formatInfo, &formatProps);
 * 
 * if (textureLODGatherSupport.supportsTextureGatherLODBiasAMD == VK_TRUE)
 * {
 *     // physical device supports SPV_AMD_texture_gather_bias_lod for the specified
 *     // format configuration.
 * }
 * else
 * {
 *     // physical device does not support SPV_AMD_texture_gather_bias_lod for the
 *     // specified format configuration.
 * }
* *
*
Name String
*
{@code VK_AMD_texture_gather_bias_lod}
*
Extension Type
*
Device extension
*
Registered Extension Number
*
42
*
Revision
*
1
*
Extension and Version Dependencies
*
*
Contact
*
    *
  • Rex Xu @amdrexu
  • *
*
Last Modified Date
*
03/21/2017
*
IP Status
*
No known IP claims.
*
Interactions and External Dependencies
*
*
Contributors
*
    *
  • Dominik Witczak, AMD
  • *
  • Daniel Rakos, AMD
  • *
  • Graham Sellers, AMD
  • *
  • Matthaeus G. Chajdas, AMD
  • *
  • Qun Lin, AMD
  • *
  • Rex Xu, AMD
  • *
  • Timothy Lottes, AMD
  • *
*
*/ public final class AMDTextureGatherBiasLod { /** The extension specification version. */ public static final int VK_AMD_TEXTURE_GATHER_BIAS_LOD_SPEC_VERSION = 1; /** The extension name. */ public static final String VK_AMD_TEXTURE_GATHER_BIAS_LOD_EXTENSION_NAME = "VK_AMD_texture_gather_bias_lod"; /** Extends {@code VkStructureType}. */ public static final int VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD = 1000041000; private AMDTextureGatherBiasLod() {} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy