Add shader input attributes to the shader generation key
This is a partial back-port of dev. RHI already has this feature.
When the user provides different inputs with same shader states and
some inputs are missing, Quick3D makes warnings and can fall into
an unexpected state.
For CustomMaterial, the inputs should be guaranteed by the user.
Change-Id: I53123f1040ae1535e72e20e0769f59b020b696a2
Reviewed-by:
Andy Nichols <andy.nichols@qt.io>
Showing
- src/runtimerender/qssgrendercustommaterialshadergenerator.cpp 9 additions, 9 deletions...runtimerender/qssgrendercustommaterialshadergenerator.cpp
- src/runtimerender/qssgrendercustommaterialsystem.cpp 14 additions, 14 deletionssrc/runtimerender/qssgrendercustommaterialsystem.cpp
- src/runtimerender/qssgrendercustommaterialsystem_p.h 9 additions, 9 deletionssrc/runtimerender/qssgrendercustommaterialsystem_p.h
- src/runtimerender/qssgrenderdefaultmaterialshadergenerator.cpp 10 additions, 10 deletions...untimerender/qssgrenderdefaultmaterialshadergenerator.cpp
- src/runtimerender/qssgrenderdefaultmaterialshadergenerator_p.h 6 additions, 6 deletions...untimerender/qssgrenderdefaultmaterialshadergenerator_p.h
- src/runtimerender/qssgrendershaderkeys_p.h 42 additions, 0 deletionssrc/runtimerender/qssgrendershaderkeys_p.h
- src/runtimerender/rendererimpl/qssgrendererimpllayerrenderpreparationdata.cpp 39 additions, 0 deletions...ndererimpl/qssgrendererimpllayerrenderpreparationdata.cpp
- src/runtimerender/rendererimpl/qssgrendererimpllayerrenderpreparationdata_p.h 3 additions, 0 deletions...ndererimpl/qssgrendererimpllayerrenderpreparationdata_p.h
- src/runtimerender/rendererimpl/qssgrendererimplshaders.cpp 47 additions, 14 deletionssrc/runtimerender/rendererimpl/qssgrendererimplshaders.cpp
- src/runtimerender/rendererimpl/qssgvertexpipelineimpl_p.h 15 additions, 15 deletionssrc/runtimerender/rendererimpl/qssgvertexpipelineimpl_p.h
Loading
Please register or sign in to comment