Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 Changes in this version + const CommandGetFeatureState + const CommandGetInfo + const CommandGetProcessInfo + type GPUDevice struct + DeviceID float64 + DeviceString string + DriverVendor string + DriverVersion string + Revision float64 + SubSysID float64 + VendorID float64 + VendorString string + func (v *GPUDevice) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GPUDevice) UnmarshalJSON(data []byte) error + func (v GPUDevice) MarshalEasyJSON(w *jwriter.Writer) + func (v GPUDevice) MarshalJSON() ([]byte, error) + type GPUInfo struct + AuxAttributes easyjson.RawMessage + Devices []*GPUDevice + DriverBugWorkarounds []string + FeatureStatus easyjson.RawMessage + ImageDecoding []*ImageDecodeAcceleratorCapability + VideoDecoding []*VideoDecodeAcceleratorCapability + VideoEncoding []*VideoEncodeAcceleratorCapability + func (v *GPUInfo) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GPUInfo) UnmarshalJSON(data []byte) error + func (v GPUInfo) MarshalEasyJSON(w *jwriter.Writer) + func (v GPUInfo) MarshalJSON() ([]byte, error) + type GetFeatureStateParams struct + FeatureState string + func GetFeatureState(featureState string) *GetFeatureStateParams + func (p *GetFeatureStateParams) Do(ctx context.Context) (featureEnabled bool, err error) + func (v *GetFeatureStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetFeatureStateParams) UnmarshalJSON(data []byte) error + func (v GetFeatureStateParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetFeatureStateParams) MarshalJSON() ([]byte, error) + type GetFeatureStateReturns struct + FeatureEnabled bool + func (v *GetFeatureStateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetFeatureStateReturns) UnmarshalJSON(data []byte) error + func (v GetFeatureStateReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetFeatureStateReturns) MarshalJSON() ([]byte, error) + type GetInfoParams struct + func GetInfo() *GetInfoParams + func (p *GetInfoParams) Do(ctx context.Context) (gpu *GPUInfo, modelName string, modelVersion string, commandLine string, ...) + func (v *GetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetInfoParams) UnmarshalJSON(data []byte) error + func (v GetInfoParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetInfoParams) MarshalJSON() ([]byte, error) + type GetInfoReturns struct + CommandLine string + Gpu *GPUInfo + ModelName string + ModelVersion string + func (v *GetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetInfoReturns) UnmarshalJSON(data []byte) error + func (v GetInfoReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetInfoReturns) MarshalJSON() ([]byte, error) + type GetProcessInfoParams struct + func GetProcessInfo() *GetProcessInfoParams + func (p *GetProcessInfoParams) Do(ctx context.Context) (processInfo []*ProcessInfo, err error) + func (v *GetProcessInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetProcessInfoParams) UnmarshalJSON(data []byte) error + func (v GetProcessInfoParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetProcessInfoParams) MarshalJSON() ([]byte, error) + type GetProcessInfoReturns struct + ProcessInfo []*ProcessInfo + func (v *GetProcessInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetProcessInfoReturns) UnmarshalJSON(data []byte) error + func (v GetProcessInfoReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetProcessInfoReturns) MarshalJSON() ([]byte, error) + type ImageDecodeAcceleratorCapability struct + ImageType ImageType + MaxDimensions *Size + MinDimensions *Size + Subsamplings []SubsamplingFormat + func (v *ImageDecodeAcceleratorCapability) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ImageDecodeAcceleratorCapability) UnmarshalJSON(data []byte) error + func (v ImageDecodeAcceleratorCapability) MarshalEasyJSON(w *jwriter.Writer) + func (v ImageDecodeAcceleratorCapability) MarshalJSON() ([]byte, error) + type ImageType string + const ImageTypeJpeg + const ImageTypeUnknown + const ImageTypeWebp + func (t *ImageType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *ImageType) UnmarshalJSON(buf []byte) error + func (t ImageType) MarshalEasyJSON(out *jwriter.Writer) + func (t ImageType) MarshalJSON() ([]byte, error) + func (t ImageType) String() string + type ProcessInfo struct + CPUTime float64 + ID int64 + Type string + func (v *ProcessInfo) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ProcessInfo) UnmarshalJSON(data []byte) error + func (v ProcessInfo) MarshalEasyJSON(w *jwriter.Writer) + func (v ProcessInfo) MarshalJSON() ([]byte, error) + type Size struct + Height int64 + Width int64 + func (v *Size) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Size) UnmarshalJSON(data []byte) error + func (v Size) MarshalEasyJSON(w *jwriter.Writer) + func (v Size) MarshalJSON() ([]byte, error) + type SubsamplingFormat string + const SubsamplingFormatYuv420 + const SubsamplingFormatYuv422 + const SubsamplingFormatYuv444 + func (t *SubsamplingFormat) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *SubsamplingFormat) UnmarshalJSON(buf []byte) error + func (t SubsamplingFormat) MarshalEasyJSON(out *jwriter.Writer) + func (t SubsamplingFormat) MarshalJSON() ([]byte, error) + func (t SubsamplingFormat) String() string + type VideoDecodeAcceleratorCapability struct + MaxResolution *Size + MinResolution *Size + Profile string + func (v *VideoDecodeAcceleratorCapability) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *VideoDecodeAcceleratorCapability) UnmarshalJSON(data []byte) error + func (v VideoDecodeAcceleratorCapability) MarshalEasyJSON(w *jwriter.Writer) + func (v VideoDecodeAcceleratorCapability) MarshalJSON() ([]byte, error) + type VideoEncodeAcceleratorCapability struct + MaxFramerateDenominator int64 + MaxFramerateNumerator int64 + MaxResolution *Size + Profile string + func (v *VideoEncodeAcceleratorCapability) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *VideoEncodeAcceleratorCapability) UnmarshalJSON(data []byte) error + func (v VideoEncodeAcceleratorCapability) MarshalEasyJSON(w *jwriter.Writer) + func (v VideoEncodeAcceleratorCapability) MarshalJSON() ([]byte, error)