astc

package
v0.0.0-...-3f8b8ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTextureCompressor

func NewTextureCompressor() handler.Handler

NewTextureCompressor get a new tc handler

Types

type TextureCompressor

type TextureCompressor struct {
	// contains filtered or unexported fields
}

TextureCompressor describe the handler to handle texture compress in unity3d

func (*TextureCompressor) CanExecuteWithLocalIdleResource

func (cc *TextureCompressor) CanExecuteWithLocalIdleResource(command []string) bool

func (*TextureCompressor) FinalExecute

func (tc *TextureCompressor) FinalExecute([]string)

FinalExecute no need

func (*TextureCompressor) GetFilterRules

func (tc *TextureCompressor) GetFilterRules() ([]dcSDK.FilterRuleItem, error)

GetFilterRules no need

func (*TextureCompressor) GetPreloadConfig

func (tc *TextureCompressor) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)

GetPreloadConfig no need

func (*TextureCompressor) InitExtra

func (tc *TextureCompressor) InitExtra(extra []byte)

InitExtra no need

func (*TextureCompressor) InitSandbox

func (tc *TextureCompressor) InitSandbox(sandbox *dcSyscall.Sandbox)

InitSandbox init sandbox

func (*TextureCompressor) LocalExecute

func (tc *TextureCompressor) LocalExecute(command []string) dcType.BKDistCommonError

LocalExecute no need

func (*TextureCompressor) LocalExecuteNeed

func (tc *TextureCompressor) LocalExecuteNeed(command []string) bool

LocalExecuteNeed no need

func (*TextureCompressor) LocalLockWeight

func (tc *TextureCompressor) LocalLockWeight(command []string) int32

LocalLockWeight decide local-execute lock weight, default 1

func (*TextureCompressor) NeedRemoteResource

func (tc *TextureCompressor) NeedRemoteResource(command []string) bool

NeedRemoteResource check whether this command need remote resource

func (*TextureCompressor) NeedRetryOnRemoteFail

func (tc *TextureCompressor) NeedRetryOnRemoteFail(command []string) bool

NeedRetryOnRemoteFail check whether need retry on remote fail

func (*TextureCompressor) OnRemoteFail

func (tc *TextureCompressor) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)

OnRemoteFail give chance to try other way if failed to remote execute

func (*TextureCompressor) PostExecute

PostExecute judge the result

func (*TextureCompressor) PostExecuteNeedLock

func (tc *TextureCompressor) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool

PostExecuteNeedLock no need

func (*TextureCompressor) PostLockWeight

func (tc *TextureCompressor) PostLockWeight(result *dcSDK.BKDistResult) int32

PostLockWeight decide post-execute lock weight, default 1

func (*TextureCompressor) PostWork

func (tc *TextureCompressor) PostWork(config *dcType.BoosterConfig) error

PostWork no need

func (*TextureCompressor) PreExecute

func (tc *TextureCompressor) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)

PreExecute parse the input and output file, and then just run the origin command in remote

func (*TextureCompressor) PreExecuteNeedLock

func (tc *TextureCompressor) PreExecuteNeedLock(command []string) bool

PreExecuteNeedLock no need

func (*TextureCompressor) PreLockWeight

func (tc *TextureCompressor) PreLockWeight(command []string) int32

PreLockWeight decide pre-execute lock weight, default 1

func (*TextureCompressor) PreWork

func (tc *TextureCompressor) PreWork(config *dcType.BoosterConfig) error

PreWork no need

func (*TextureCompressor) RemoteRetryTimes

func (tc *TextureCompressor) RemoteRetryTimes() int

RemoteRetryTimes will return the remote retry times

func (*TextureCompressor) RenderArgs

func (tc *TextureCompressor) RenderArgs(config dcType.BoosterConfig, originArgs string) string

RenderArgs no need change

func (*TextureCompressor) ResultExtra

func (tc *TextureCompressor) ResultExtra() []byte

ResultExtra no need

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL