Description

FragSizeEXT

Decorating a variable with the FragSizeEXT built-in decoration will make that variable contain the dimensions in pixels of the area that the fragment covers for that invocation.

If fragment density map is not enabled, FragSizeEXT will be filled with a value of (1,1).

Valid Usage
  • VUID-FragSizeEXT-FragSizeEXT-04220
    The FragSizeEXT decoration must be used only within the Fragment Execution Model

  • VUID-FragSizeEXT-FragSizeEXT-04221
    The variable decorated with FragSizeEXT must be declared using the Input Storage Class

  • VUID-FragSizeEXT-FragSizeEXT-04222
    The variable decorated with FragSizeEXT must be declared as a two-component vector of 32-bit integer values

See Also

No cross-references are available

Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0