Commit cb4f8a79 by Gert Wollny Committed by Angle LUCI CQ

Capture: Add a specialization for TGLeglImageOES

When writing out the parameter TGLeglImageOES an additional cast is needed. Bug: angleproject:6036 Change-Id: I7470a58a6ae17b0185d0c2e3fe1184b698f3efaf Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2944952Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Gert Wollny <gert.wollny@collabora.com>
parent 19209666
...@@ -5575,4 +5575,13 @@ void WriteParamValueReplay<ParamType::TUniformBlockIndex>(std::ostream &os, ...@@ -5575,4 +5575,13 @@ void WriteParamValueReplay<ParamType::TUniformBlockIndex>(std::ostream &os,
os << "gUniformBlockIndexes[gShaderProgramMap[" << programID.value << "]][" << value.value os << "gUniformBlockIndexes[gShaderProgramMap[" << programID.value << "]][" << value.value
<< "]"; << "]";
} }
template <>
void WriteParamValueReplay<ParamType::TGLeglImageOES>(std::ostream &os,
const CallCapture &call,
GLeglImageOES value)
{
os << "reinterpret_cast<EGLImageKHR>(" << value << ")";
}
} // namespace angle } // namespace angle
...@@ -664,6 +664,11 @@ void WriteParamValueReplay<ParamType::TGLsync>(std::ostream &os, ...@@ -664,6 +664,11 @@ void WriteParamValueReplay<ParamType::TGLsync>(std::ostream &os,
const CallCapture &call, const CallCapture &call,
GLsync value); GLsync value);
template <>
void WriteParamValueReplay<ParamType::TGLeglImageOES>(std::ostream &os,
const CallCapture &call,
GLeglImageOES value);
// General fallback for any unspecific type. // General fallback for any unspecific type.
template <ParamType ParamT, typename T> template <ParamType ParamT, typename T>
void WriteParamValueReplay(std::ostream &os, const CallCapture &call, T value) void WriteParamValueReplay(std::ostream &os, const CallCapture &call, T value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment