Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1b17f90

Browse files
vontureCommit Bot
authored andcommitted
Vulkan: Implement ANGLE_translated_shader_source
BUG=angleproject:2909 Change-Id: Ie59c1206e2ce4940e27fed7887dbee665721049b Reviewed-on: https://chromium-review.googlesource.com/c/1351354 Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
1 parent bc8cc5a commit 1b17f90

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/libANGLE/renderer/vulkan/ShaderVk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bool ShaderVk::postTranslateCompile(gl::ShCompilerInstance *compiler, std::strin
5151

5252
std::string ShaderVk::getDebugInfo() const
5353
{
54-
return std::string();
54+
return mData.getTranslatedSource();
5555
}
5656

5757
} // namespace rx

src/libANGLE/renderer/vulkan/vk_caps_utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void GenerateCaps(const VkPhysicalDeviceProperties &physicalDeviceProperties,
4848
outExtensions->debugMarker = true;
4949
outExtensions->robustness = true;
5050
outExtensions->textureBorderClamp = false; // not implemented yet
51+
outExtensions->translatedShaderSource = true;
5152

5253
// We use secondary command buffers almost everywhere and they require a feature to be
5354
// able to execute in the presence of queries. As a result, we won't support queries

0 commit comments

Comments
 (0)