Top Description Fields Constructors Methods
org.lwjgl.vulkan

public final Class EXTShaderTileImage

extends Object
Class Inheritance

This extension allows fragment shader invocations to read color, depth and stencil values at their pixel location in rasterization order. The functionality is only available when using dynamic render passes introduced by VK_KHR_dynamic_rendering. Example use cases are programmable blending and deferred shading.

See fragment shader tile image reads for more information.

Examples

Color read example.


layout( location = 0 // aliased to color attachment 0  ) tileImageEXT highp attachmentEXT color0;
layout( location = 1 // aliased to color attachment 1  ) tileImageEXT highp attachmentEXT color1;

layout( location = 0 ) out vec4 fragColor;

void main()
{
    vec4 value = colorAttachmentReadEXT(color0) + colorAttachmentReadEXT(color1);
    fragColor = value;
}

Depth & Stencil read example.


void main()
{
    // read sample 0: works for non-MSAA or MSAA targets
    highp float last_depth = depthAttachmentReadEXT();
    lowp uint last_stencil = stencilAttachmentReadEXT();

    //..
}
VK_EXT_shader_tile_image
Name String
VK_EXT_shader_tile_image
Extension Type
Device extension
Registered Extension Number
396
Revision
1
Extension and Version Dependencies
Version 1.3
Contact
Extension Proposal
VK_EXT_shader_tile_image
Other Extension Metadata
Last Modified Date
2023-03-23
IP Status
No known IP claims.
Interactions and External Dependencies
Contributors
  • Sandeep Kakarlapudi, Arm
  • Jan-Harald Fredriksen, Arm
  • James Fitzpatrick, Imagination
  • Andrew Garrard, Imagination
  • Jeff Leger, Qualcomm
  • Huilong Wang, Huawei
  • Graeme Leese, Broadcom
  • Hans-Kristian Arntzen, Valve
  • Tobias Hector, AMD
  • Jeff Bolz, NVIDIA
  • Shahbaz Youssefi, Google

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSION

The extension specification version.

public static final int
public static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAMEback to summary
public static final String VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAME

The extension name.

VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSIONback to summary
public static final int VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSION

The extension specification version.

VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_FEATURES_EXTback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_FEATURES_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_PROPERTIES_EXTback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_PROPERTIES_EXT

Extends VkStructureType.

Enum values:

Constructor Detail

EXTShaderTileImageback to summary
private EXTShaderTileImage()