See fragment shader tile image reads for more information.
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_imageSPV_EXT_shader_tile_imageGL_EXT_shader_tile_image| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAME
The extension name. |
| public static final int | VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_FEATURES_EXT
Extends |
| public static final int | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_PROPERTIES_EXT
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_EXT_SHADER_TILE_IMAGE_EXTENSION_NAME The extension name. | |
| VK_EXT_SHADER_TILE_IMAGE_SPEC_VERSION | back 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_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_FEATURES_EXT Extends Enum values: | |
| VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_PROPERTIES_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TILE_IMAGE_PROPERTIES_EXT Extends Enum values: | |
| EXTShaderTileImage | back to summary |
|---|---|
| private EXTShaderTileImage() | |