Commit 2c0e4494 authored by Laszlo Agocs's avatar Laszlo Agocs

Revert "shadertools: Describe some ideas around gl program binaries"

This reverts commit 2676ad23.
parent 2676ad23
......@@ -1401,18 +1401,6 @@ bool QGles2GraphicsPipeline::build()
if (!isVertex && !isFragment)
if (isVertex) {
bool gotProgramBinary = false;
for (const QBakedShader::ShaderKey &skey : shaderStage.shader.availableShaders()) {
if (skey.source == QBakedShader::OpenGLProgramBinary) {
// ###
//gotProgramBinary = true;
if (gotProgramBinary)
GLuint shader = rhiD->f->glCreateShader(isVertex ? GL_VERTEX_SHADER : GL_FRAGMENT_SHADER);
QBakedShader::ShaderSourceVersion ver;
if (rhiD->ctx->isOpenGLES())
......@@ -63,8 +63,7 @@ public:
DxbcShader, // fxc
DxilShader, // dxc
MetalLibShader, // xcrun metal + xcrun metallib
OpenGLProgramBinary // stage must be vertex, use version for format
MetalLibShader // xcrun metal + xcrun metallib
struct ShaderSourceVersion {
......@@ -26,7 +26,6 @@ gl: more ubuf types
gl: reduce state, reduce texparam
gl: tex size stuff (npot etc.)
d3d, gl, mtl: cache shader sources?
gl: program binary load support
advanced blend modes?
resize to 0 width or height fails (vk)
gl: ubuf structs, arrays
......@@ -39,13 +38,11 @@ more tex: 3d, array?
vk: support instanceStepRate via VK_EXT_vertex_attribute_divisor
qsb management (merge, delete)? -> could then do a tool to save gl program binaries on target and then merge them to a qsb on the host
dxc for d3d in addition to fxc?
bytecode (fxc/dxc) for d3d?
bytecode for metal?
hlsl -> dxc -> spirv -> spirv-cross hmmm...
+++ done
bytecode (fxc) for d3d
bytecode for metal
vk: im.layout transition missing when no upload, no render to (or is the case invalid?)
vk, d3d: verify no-color-just-depth again
preservecolor applies to which att. (all -> fix mtl)
......@@ -125,8 +125,6 @@ static QString sourceStr(QBakedShader::ShaderSource source)
return QStringLiteral("DXIL");
case QBakedShader::MetalLibShader:
return QStringLiteral("metallib");
case QBakedShader::OpenGLProgramBinary:
return QStringLiteral("glProgramBinary");
......@@ -182,8 +180,6 @@ static void dump(const QBakedShader &bs)
case QBakedShader::DxilShader:
case QBakedShader::MetalLibShader:
case QBakedShader::OpenGLProgramBinary:
ts << "Binary of " << shader.shader.size() << " bytes\n\n";
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