MaterialX icon indicating copy to clipboard operation
MaterialX copied to clipboard

MDL shader uniform block reflection inconsistency

Open kwokcb opened this issue 1 year ago • 0 comments

Difference

For the supplied code generators only MDL does not seem to provide uniform information for the pixel stage. All GLSL variants (GLSL, ESSL, Vulkan), Metal, and OSL return information.

Reproducible Case

Given a generated shader (say from generateShader.py script)

 for i in range(0, shader.numStages()):
        stage = shader.getStage(i)
        if stage:
            stageName = stage.getName() 
            theBlocks = stage.getUniformBlocks()
            if len(theBlocks) == 0:
                print(f'stage: {stageName} has no uniform blocks')    

kwokcb avatar Jul 19 '24 16:07 kwokcb