OpenGLRenderer: Improve OpenGL wrapper
This commit is contained in:
@@ -59,6 +59,11 @@ namespace Nz::GL
|
||||
m_device->GetReferenceContext().glShaderSource(m_objectId, 1U, &source, &length);
|
||||
}
|
||||
|
||||
inline void Shader::SetSource(const std::string_view& source)
|
||||
{
|
||||
return SetSource(source.data(), GLint(source.size()));
|
||||
}
|
||||
|
||||
inline void Shader::SpecializeShader(const GLchar* pEntryPoint, GLuint numSpecializationConstants, const GLuint* pConstantIndex, const GLuint* pConstantValue)
|
||||
{
|
||||
assert(m_objectId);
|
||||
|
||||
Reference in New Issue
Block a user