Class TestSetLoader
Test set loader
Namespace: Unity.Barracuda
Syntax
public class TestSetLoader : object
Methods
Load(String)
Load test set from file
Declaration
public static TestSet Load(string filename)
Parameters
Type | Name | Description |
---|---|---|
String | filename | file name |
Returns
Type | Description |
---|---|
TestSet |
|
LoadFloatArray(BinaryReader)
Load float array
Declaration
public static float[] LoadFloatArray(BinaryReader file)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | file | binary file reader |
Returns
Type | Description |
---|---|
Single[] | float array |
LoadGZ(String)
Load GZ
Declaration
public static TestSet LoadGZ(string filename)
Parameters
Type | Name | Description |
---|---|---|
String | filename | file name |
Returns
Type | Description |
---|---|
TestSet |
|
LoadImage(String)
Load image
Declaration
public static Texture LoadImage(string filename)
Parameters
Type | Name | Description |
---|---|---|
String | filename | file name |
Returns
Type | Description |
---|---|
Texture |
|
LoadJSON(String)
Load JSON
Declaration
public static TestSet LoadJSON(string filename)
Parameters
Type | Name | Description |
---|---|---|
String | filename | file name |
Returns
Type | Description |
---|---|
TestSet |
|
LoadRaw(String)
Load raw test set
Declaration
public static TestSet LoadRaw(string filename)
Parameters
Type | Name | Description |
---|---|---|
String | filename | file name |
Returns
Type | Description |
---|---|
TestSet |
|