diff --git a/chapters/vertex_input_data_processing.adoc b/chapters/vertex_input_data_processing.adoc index e540183..db524e9 100644 --- a/chapters/vertex_input_data_processing.adoc +++ b/chapters/vertex_input_data_processing.adoc @@ -322,18 +322,12 @@ The link:https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.ht Each `location` in the `VkVertexInputAttributeDescription` has 4 components. The example above already showed that extra components from the `format` are discarded when the shader input has fewer components. -[NOTE] -.Example -==== -`VK_FORMAT_R32G32B32_SFLOAT` has 3 components while a `vec2` has only 2 -==== - -For the opposite case, the spec says: - ____ -If the format does not include G, B, or A components, then those are filled with (0,0,1) as needed (using either 1.0f or integer 1 based on the format) for attributes that are not 64-bit data types. +`VK_FORMAT_R32G32B32_SFLOAT` has 3 components while a `vec2` has only 2 ____ +For the opposite case, the spec link:https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-conversion-to-rgba[has a table] showing how it will expand missing components. + This means the example of [source,glsl] diff --git a/lang/jp/chapters/vertex_input_data_processing.adoc b/lang/jp/chapters/vertex_input_data_processing.adoc index b6d2369..64e4772 100644 --- a/lang/jp/chapters/vertex_input_data_processing.adoc +++ b/lang/jp/chapters/vertex_input_data_processing.adoc @@ -320,18 +320,12 @@ link:https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.ht `VkVertxInputAttributeDescription` の各 `location` は4つのコンポーネントを持っています。上の例では、シェーダ入力のコンポーネント数が少ない場合、`format` からの余分なコンポーネントが破棄されることを示しました。 -[NOTE] -.Example -==== -`VK_FORMAT_R32G32B32_SFLOAT` は3つのコンポーネントを持ちますが、`vec2` は2つしかありません。 -==== - -その逆のケースでは、仕様書には次のように書かれています。 - ____ -フォーマットにG、B、Aのコンポーネントが含まれていない場合、64ビットのデータ型ではない属性は、必要に応じて(0,0,1)で埋められます(フォーマットに応じて1.0f または整数の1を使用)。 +`VK_FORMAT_R32G32B32_SFLOAT` は3つのコンポーネントを持ちますが、`vec2` は2つしかありません。 ____ +その逆のケースでは、仕様書には、欠落しているコンポーネントをどのように拡張するかをlink:https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-conversion-to-rgba[示す表がある。] + 例としてはこのようになります。 [source,glsl] diff --git a/lang/kor/chapters/vertex_input_data_processing.adoc b/lang/kor/chapters/vertex_input_data_processing.adoc index 16f267c..e5742ac 100644 --- a/lang/kor/chapters/vertex_input_data_processing.adoc +++ b/lang/kor/chapters/vertex_input_data_processing.adoc @@ -323,17 +323,12 @@ link:https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#f `VkVertexInputAttributeDescription` 의 각 `location` 에는 4개의 컴포넌트가 있습니다. 위의 예제에서는 쉐이더 입력에 컴포넌트 수가 적을 때 `format` 의 여분의 컴포넌트가 버려지는 것을 이미 보여주었습니다. -[NOTE] -.예제 -==== +____ `VK_FORMAT_R32G32B32_SFLOAT` 에는 3개의 컴포넌트가 있는 반면 `vec2` 에는 2개만 있습니다 -==== +____ -그 반대의 경우 사양서에는 다음과 같이 나와 있습니다: +그 반대의 경우 사양에는 누락된 컴포넌트를 확장하는 link:https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#textures-conversion-to-rgba[방법을 보여주는 표가 있습니다.] -____ -포맷에 G, B, A 컴포넌트가 포함되지 않은 경우 64비트 데이터 유형이 아닌 속성은 필요에 따라 (0,0,1)로 채워집니다(포맷에 따라 1.0f 또는 정수 1 사용). -____ 이는 다음과 같은 예제를 의미합니다