Closed ilexp closed 6 years ago
feature/3.0/shader-handling-improvements
branch.ShaderSourceBuilder
.ShaderSourceBuilder
to comment out all Duality specific pragma directives on build to fix the intel driver crash issue.
ShaderSourceBuilder
instead.ShaderSourceBuilder
parsing results instead.BatchInfoPropertyEditor
is still fine with the new code.
ShaderSourceBuilder
to comment out all Duality specific pragma directives on build to fix the intel driver crash issue.ShaderSourceBuilder
ignoring an additional line when commenting out version directives, leading to ignoring the builtin view matrix field.BatchInfoPropertyEditor
is still fine with the new code.
ShaderSourceBuilder
to comment out all Duality specific pragma directives on build to fix the intel driver crash issue.Done and merged. Closing this.
Summary
There are some rough edges on how v3.0 handles shader compilation and reflection. They should be fixed.
Analysis
NativeShaderProgram.Compile
call on the Duality side.#pragma
directives they don't know. This is a driver bug, but a workaround would be nice.ShaderSourceBuilder
, so the backend will only get the processed, reduced version of the shader code in the first place.