Rise
The Vieneo Province
Loading...
Searching...
No Matches
CompileNativeShaders11 Class Referencesealed
Inheritance diagram for CompileNativeShaders11:
[legend]
Collaboration diagram for CompileNativeShaders11:
[legend]

Classes

class  Snapshot

Public Member Functions

void Cancel ()
override bool Execute ()

Properties

ITaskItem[] Shaders [get, set]
string Compiler [get, set]
string CacheDirectory [get, set]
string OutputDirectory [get, set]
string Optimization = "O3" [get, set]
int MaxParallelism = Math.Min(8, Environment.ProcessorCount) [get, set]
int CompiledCount [get, set]
int CacheHitCount [get, set]
int PeakCompilerProcesses [get, set]

Private Member Functions

void RunCompiler (string arguments)
FileStream LockEntry (string path)
string GroupKey (ITaskItem item)
void ParallelWork< T > (IEnumerable< T > items, Action< T > action)

Static Private Member Functions

static string Hash (byte[] bytes)
static string Quote (string value)
static bool ValidBytecode (byte[] bytes)
static byte[] ReadCache (string path)
static void WriteIfDifferent (string path, byte[] bytes)

Private Attributes

readonly CancellationTokenSource cancellation = new CancellationTokenSource()
int activeProcesses
readonly object processCountLock = new object()

Detailed Description

Definition at line 18 of file CompileNativeShaders11.cs.

Member Function Documentation

◆ Cancel()

void CompileNativeShaders11.Cancel ( )
inline

Definition at line 38 of file CompileNativeShaders11.cs.

◆ Execute()

override bool CompileNativeShaders11.Execute ( )
inline

Definition at line 169 of file CompileNativeShaders11.cs.

Here is the call graph for this function:

◆ GroupKey()

string CompileNativeShaders11.GroupKey ( ITaskItem item)
inlineprivate

Definition at line 140 of file CompileNativeShaders11.cs.

Here is the caller graph for this function:

◆ Hash()

string CompileNativeShaders11.Hash ( byte[] bytes)
inlinestaticprivate

Definition at line 40 of file CompileNativeShaders11.cs.

Here is the caller graph for this function:

◆ LockEntry()

FileStream CompileNativeShaders11.LockEntry ( string path)
inlineprivate

Definition at line 94 of file CompileNativeShaders11.cs.

Here is the caller graph for this function:

◆ ParallelWork< T >()

void CompileNativeShaders11.ParallelWork< T > ( IEnumerable< T > items,
Action< T > action )
inlineprivate

Definition at line 145 of file CompileNativeShaders11.cs.

◆ Quote()

string CompileNativeShaders11.Quote ( string value)
inlinestaticprivate

Definition at line 46 of file CompileNativeShaders11.cs.

Here is the caller graph for this function:

◆ ReadCache()

byte[] CompileNativeShaders11.ReadCache ( string path)
inlinestaticprivate

Definition at line 117 of file CompileNativeShaders11.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunCompiler()

void CompileNativeShaders11.RunCompiler ( string arguments)
inlineprivate

Definition at line 55 of file CompileNativeShaders11.cs.

Here is the caller graph for this function:

◆ ValidBytecode()

bool CompileNativeShaders11.ValidBytecode ( byte[] bytes)
inlinestaticprivate

Definition at line 110 of file CompileNativeShaders11.cs.

Here is the caller graph for this function:

◆ WriteIfDifferent()

void CompileNativeShaders11.WriteIfDifferent ( string path,
byte[] bytes )
inlinestaticprivate

Definition at line 127 of file CompileNativeShaders11.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ activeProcesses

int CompileNativeShaders11.activeProcesses
private

Definition at line 30 of file CompileNativeShaders11.cs.

◆ cancellation

readonly CancellationTokenSource CompileNativeShaders11.cancellation = new CancellationTokenSource()
private

Definition at line 29 of file CompileNativeShaders11.cs.

◆ processCountLock

readonly object CompileNativeShaders11.processCountLock = new object()
private

Definition at line 31 of file CompileNativeShaders11.cs.

Property Documentation

◆ CacheDirectory

string CompileNativeShaders11.CacheDirectory
getset

Definition at line 22 of file CompileNativeShaders11.cs.

◆ CacheHitCount

int CompileNativeShaders11.CacheHitCount
getset

Definition at line 27 of file CompileNativeShaders11.cs.

◆ CompiledCount

int CompileNativeShaders11.CompiledCount
getset

Definition at line 26 of file CompileNativeShaders11.cs.

◆ Compiler

string CompileNativeShaders11.Compiler
getset

Definition at line 21 of file CompileNativeShaders11.cs.

◆ MaxParallelism

int CompileNativeShaders11.MaxParallelism = Math.Min(8, Environment.ProcessorCount)
getset

Definition at line 25 of file CompileNativeShaders11.cs.

◆ Optimization

string CompileNativeShaders11.Optimization = "O3"
getset

Definition at line 24 of file CompileNativeShaders11.cs.

◆ OutputDirectory

string CompileNativeShaders11.OutputDirectory
getset

Definition at line 23 of file CompileNativeShaders11.cs.

◆ PeakCompilerProcesses

int CompileNativeShaders11.PeakCompilerProcesses
getset

Definition at line 28 of file CompileNativeShaders11.cs.

◆ Shaders

ITaskItem [] CompileNativeShaders11.Shaders
getset

Definition at line 20 of file CompileNativeShaders11.cs.


The documentation for this class was generated from the following file: