Commit c8677c73 by Gert Wollny

Capture: Add a specialization for const GLuint *

Bug: angleproject:6058 Change-Id: I31cad1dd23d313aae625874e140c406747e0f4c4 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2957953Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 78437770
...@@ -5428,6 +5428,22 @@ void WriteParamValueReplay<ParamType::TGLfloatConstPointer>(std::ostream &os, ...@@ -5428,6 +5428,22 @@ void WriteParamValueReplay<ParamType::TGLfloatConstPointer>(std::ostream &os,
} }
template <> template <>
void WriteParamValueReplay<ParamType::TGLuintConstPointer>(std::ostream &os,
const CallCapture &call,
const GLuint *value)
{
if (value == 0)
{
os << "nullptr";
}
else
{
os << "reinterpret_cast<const GLuint *>("
<< static_cast<int>(reinterpret_cast<uintptr_t>(value)) << ")";
}
}
template <>
void WriteParamValueReplay<ParamType::TGLDEBUGPROCKHR>(std::ostream &os, void WriteParamValueReplay<ParamType::TGLDEBUGPROCKHR>(std::ostream &os,
const CallCapture &call, const CallCapture &call,
GLDEBUGPROCKHR value) GLDEBUGPROCKHR value)
......
...@@ -580,6 +580,11 @@ void WriteParamValueReplay<ParamType::TGLfloatConstPointer>(std::ostream &os, ...@@ -580,6 +580,11 @@ void WriteParamValueReplay<ParamType::TGLfloatConstPointer>(std::ostream &os,
const GLfloat *value); const GLfloat *value);
template <> template <>
void WriteParamValueReplay<ParamType::TGLuintConstPointer>(std::ostream &os,
const CallCapture &call,
const GLuint *value);
template <>
void WriteParamValueReplay<ParamType::TGLDEBUGPROCKHR>(std::ostream &os, void WriteParamValueReplay<ParamType::TGLDEBUGPROCKHR>(std::ostream &os,
const CallCapture &call, const CallCapture &call,
GLDEBUGPROCKHR value); GLDEBUGPROCKHR 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