Jump to content

  • Log In with Google      Sign In   
  • Create Account

db123

Member Since 10 Apr 2010
Offline Last Active Oct 21 2014 09:09 PM

#5111802 [fixed]how to get current gpu usage by nvapi for nvidia card?

Posted by db123 on 25 November 2013 - 04:56 AM

           
NV_GPU_DYNAMIC_PSTATES_INFO_EX PstatesInfo;
            PstatesInfo.version = NV_GPU_DYNAMIC_PSTATES_INFO_EX_VER;

            for( INT i=0; i<pUsageData->GpuCount; ++i )
            {                
                ErrorCode = NvAPI_GPU_GetDynamicPstatesInfoEx( DefaultCard.GpuInfo[i].nvGpuHandle, &PstatesInfo );

                pUsageData->GpuUsage[i] = PstatesInfo.utilization[0].percentage;
            }
 
ok, i get it.



#4923842 how to get the Annotations of D3D10 Effect?

Posted by db123 on 20 March 2012 - 11:32 PM

and then , cast to string variable. ok~!Posted Image


#4923841 how to get the Annotations of D3D10 Effect?

Posted by db123 on 20 March 2012 - 11:21 PM

resolved:
GetAnnotationByIndex Get an annotation by index.

GetAnnotationByName Get an annotation by name.

this is in the ID3D10EffectVariable Interface.


PARTNERS