Skip to content

Conversation

@HildarTheDorf
Copy link
Contributor

vkcube is incorrectly treating srgb texture values as linear, then writing linear values to a COLORSPACE_SRGB_NONLINEAR swapchain image without an _SRGB format or manual correction.

VK_FORMAT_R8G8B8A8_SRGB as a sampled image format is required to be supported, so changing the input texture is fine.

SRGB formats for swapchain are required if the equivalent UNORM is supported (and vice-versa). However it is possible for unextended vulkan 1.4 to only support 1010102 or 565 etc. formats.

This results in a slight overall change to the lighting of the cube. But it is more correct for those using vkcube's code as an example.

@ci-tester-lunarg
Copy link

Author HildarTheDorf not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg
Copy link

Author HildarTheDorf not on autobuild list. Waiting for curator authorization before starting CI build.

@@ -1,41 +1,84 @@
// 7.9.2888
0x07230203,0x00010000,0x00080007,0x00000030,0x00000000,0x00020011,0x00000001,0x0006000b,
// 1115.1.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow that's a lot of versions of glslang

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unsure when the checked in code was compiled, because Vulkan-Tools used to compile glslang, then it went to just downloading the binary, to the current checked in state.

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build queued with queue ID 352491.

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build # 1605 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build # 1605 passed.

@charles-lunarg charles-lunarg merged commit 8e675c2 into KhronosGroup:main Jan 22, 2025
18 checks passed
@HildarTheDorf HildarTheDorf deleted the feature/cube_srgb_correction branch January 22, 2025 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants