Forums - Don't show matrix uniforms

5 posts / 0 new
Last post
Don't show matrix uniforms
bishaohua
Join Date: 1 Dec 16
Posts: 4
Posted: Sat, 2017-04-15 18:50

SnapDragon Profiler can't show the value of matrix uniforms of shaders.

Only  the value of vec4/vec3 uniforms are shown correctly.

  • Up0
  • Down0
BenM
Join Date: 12 May 16
Posts: 29
Posted: Mon, 2017-05-08 14:25

Hey,

Matrix values should be displayed in the Program Inspector along with the vector values.  Is that where you are looking, or are you refering to a different view?

Also, what version of Snapdragon Profiler are you using?

Thanks,

Ben

  • Up0
  • Down0
513878907
Join Date: 7 Nov 19
Posts: 2
Posted: Thu, 2020-06-18 01:29

Still don't show matrix uniforms. I test Snapdragon2019-3 and Snapdragon 2020-v1. Both of them can not show. And then I write a plugin to monitor ProgramViewInvalidateUniformEventArgs. Data for matrix is empty. 

 SdpApp.EventsManager.ProgramViewEvents.Invalidate += new EventHandler<ProgramViewInvalidateEventArgs>( this.programViewEvents_Invalidate );
            SdpApp.EventsManager.ProgramViewEvents.InvalidateUniform += new EventHandler<ProgramViewInvalidateUniformEventArgs>( this.programViewEvents_InvalideUniform );
 
    public void programViewEvents_Invalidate ( object sender, ProgramViewInvalidateEventArgs args ) {
            builder.AppendLine( "ProgramViewInvalidateEventArgs " );
            foreach( ProgramViewUniform uniform in args.Uniforms ) {
                builder.AppendLine( uniform.Name );
                builder.AppendLine( uniform.Location.ToString() );
            }
        }
 
        public void programViewEvents_InvalideUniform ( object sender, ProgramViewInvalidateUniformEventArgs args ) {
            builder.AppendLine( "ProgramViewInvalidateUniformEventArgs " );
            builder.AppendLine( args.Location.ToString() );
            builder.AppendLine( args.Data );
        }
 
 

 

 

  • Up0
  • Down0
513878907
Join Date: 7 Nov 19
Posts: 2
Posted: Thu, 2020-06-18 02:23

If you've solved this problem, please notice me, Tks.    My email is [email protected]

  • Up0
  • Down0
wangqiseed
Join Date: 11 Nov 14
Posts: 4
Posted: Thu, 2020-08-06 20:46

I encounter this problem too. Has it been solved now?

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.