Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions ktxspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -964,13 +964,15 @@ _dfDescriptorBlock_.

* If <<_vkformat,`vkFormat`>> is not `VK_FORMAT_UNDEFINED`, the
DFD's `texelBlockDimension*`, `bytesPlane*` and sample information
fields must match the format's definition. The `colorModel` must
be `KHR_DF_MODEL_RGBSDA`, `KHR_DF_MODEL_YUVSDA` or the matching
block compressed color model listed in <<KDF14>>
{url-df-spec}#CompressedFormatModels[Section 5.6] or its successors,
currently `KHR_DF_MODEL_BC1A` to `KHR_DF_MODEL_UASTC`.
`KHR_DF_MODEL_YUVSDA` should be used for all non-prohibited
`+*_422_*+` formats.
fields must match the format's definition except that the
`KHR_DF_SAMPLE_DATATYPE_LINEAR` bit of a sample's `qualifiers`
field may differ, if required by the following bullets.
* The `colorModel` must be `KHR_DF_MODEL_RGBSDA`,
`KHR_DF_MODEL_YUVSDA` or the matching block compressed color model
listed in <<KDF14>> {url-df-spec}#CompressedFormatModels[Section
5.6] or its successors, currently `KHR_DF_MODEL_BC1A` to
`KHR_DF_MODEL_UASTC`. `KHR_DF_MODEL_YUVSDA` should be used for
all non-prohibited `+*_422_*+` formats.
* If <<_vkformat,`vkFormat`>> is one of the `+*_SRGB{,_*}+` formats,
`transferFunction` must be `KHR_DF_TRANSFER_SRGB`.
* If <<_vkformat,`vkFormat`>> is not one of the `+*_SRGB{,_*}+` formats
Expand All @@ -985,6 +987,10 @@ _dfDescriptorBlock_.
- If <<_vkformat,`vkFormat`>> is not one of the `+*_HLG{,_*}+`
formats and an HLG variant of that format exists,
`transferFunction` should not be `KHR_DF_TRANSFER_HLG`.
* If `transferFunction` is not `KHR_DF_TRANSFER_LINEAR` or `
`KHR_DF_TRANSFER_UNSPECIFIED` and an alpha channel exists,
`KHR_DF_SAMPLE_DATATYPE_LINEAR` must be set in the `qualifiers`
field of the alpha sample.
* If <<_vkformat,`vkFormat`>> is one of the `+*_[SU]INT{,_*}+` formats
or one of the depth, stencil, or combined depth/stencil formats
`colorPrimaries` must be `KHR_DF_PRIMARIES_UNSPECIFIED` and `transferFunction`
Expand Down Expand Up @@ -2542,6 +2548,8 @@ include::appendices/vendor-metadata.adoc[]
functions.
- Update KDFS references to 1.4 and
make the links active.
- Clarify that KHR_DF_SAMPLE_DATATYPE_LINEAR
can vary from format definition.
|===

[discrete]
Expand Down
Loading