Skip to main content

cturtle/mesh_pipeline

include "cturtle/mesh_pipeline";

Types​

MeshPipelineVertexAttribute​

Object

FieldTypeWritableDescription
locationintyes
typeintyes
offsetintyes

MeshPipelineMeshDesc​

Object

FieldTypeWritableDescription
namestringyes
attributesarray<int>yes
strideintyes
layoutarray<MeshPipelineVertexAttribute>yes
instanceStrideintyes
instanceLayoutarray<MeshPipelineVertexAttribute>yes

MeshPipelinePassDesc​

Object

FieldTypeWritableDescription
namestringyes
meshMeshPipelineMeshyes
shaderstringyes
programstringyes
disabledboolyes
disableDepthTestboolyes
disableDepthWriteboolyes

MeshPipelineOutputDesc​

Object

FieldTypeWritableDescription
namestringyes
formatintyes
cleararray<float>yes

MeshPipelineSamplerDesc​

Object

FieldTypeWritableDescription
filterintyes
wrapintyes
mipmapsboolyes

MeshPipelineMesh​

Object

FieldTypeWritableDescription
idintyes

upload infallible​

infallible fn upload(array<float> vertices, array<int> indices) -> bool

uploadBytes infallible​

infallible fn uploadBytes(array<byte> vertices, array<int> indices) -> bool

uploadInstances infallible​

infallible fn uploadInstances(array<byte> data) -> bool

MeshPipelineImage​

Object

FieldTypeWritableDescription
idintyes

upload infallible​

infallible fn upload(string path, bool srgb) -> bool

MeshPipelinePass​

Object

FieldTypeWritableDescription
idintyes

lighting infallible​

infallible fn lighting(bool enabled) -> bool

shadow infallible​

infallible fn shadow(string shader, string program) -> bool

addOutput​

fn addOutput(MeshPipelineOutputDesc desc) -> MeshPipelineImage

bindImage infallible​

infallible fn bindImage(string shaderName, MeshPipelineImage image) -> bool

bindSampler infallible​

infallible fn bindSampler(string shaderName, MeshPipelineSamplerDesc desc) -> bool

uniform infallible​

infallible fn uniform(string block, array<float> values) -> bool

uniformBytes infallible​

infallible fn uniformBytes(string block, array<byte> values) -> bool

setEnabled infallible​

infallible fn setEnabled(bool enabled) -> bool

MeshPipeline​

Object

FieldTypeWritableDescription
idintyes

addMesh​

fn addMesh(MeshPipelineMeshDesc desc) -> MeshPipelineMesh

addImage​

fn addImage(string name) -> MeshPipelineImage

addPass​

fn addPass(MeshPipelinePassDesc desc) -> MeshPipelinePass

validate infallible​

infallible fn validate() -> bool

install​

fn install() -> bool

replaceInstalled​

fn replaceInstalled() -> bool

destroy​

fn destroy() -> bool

discardDraft infallible​

infallible fn discardDraft() -> bool

dimensions infallible​

infallible fn dimensions(array<float> output) -> bool

status infallible​

infallible fn status() -> int

errorMessage infallible​

infallible fn errorMessage() -> string

inspect infallible​

infallible fn inspect() -> string

mesh​

fn mesh(string name) -> MeshPipelineMesh

image​

fn image(string name) -> MeshPipelineImage

pass​

fn pass(string name) -> MeshPipelinePass

Functions​

meshPipelineLoad infallible​

infallible fn meshPipelineLoad(string asset) -> task<bool>

meshPipelineMesh infallible​

infallible fn meshPipelineMesh(
string mesh,
array<float> vertices,
array<int> indices) -> bool

meshPipelineImage infallible​

infallible fn meshPipelineImage(string image, string path, bool srgb) -> bool

meshPipelineUniform infallible​

infallible fn meshPipelineUniform(
string pass,
string block,
array<float> values) -> bool

meshPipelinePassEnabled infallible​

infallible fn meshPipelinePassEnabled(string pass, bool enabled) -> bool

meshPipelineAspect infallible​

infallible fn meshPipelineAspect() -> float

renderPointerCapture infallible​

infallible fn renderPointerCapture(bool captured) -> bool

meshPipelineDimensions infallible​

infallible fn meshPipelineDimensions(array<float> dimensions) -> bool

noiseSimplex2Grid infallible​

infallible fn noiseSimplex2Grid(
int width,
int depth,
int seed,
float frequency,
int octaves,
array<float> output) -> bool

meshPipelineInspectJson infallible​

infallible fn meshPipelineInspectJson(string source, string root) -> string

meshPipelineInspect infallible​

infallible fn meshPipelineInspect(int id) -> string

meshPipelineInspectInstalled infallible​

infallible fn meshPipelineInspectInstalled() -> string

meshPipelineReload infallible​

infallible fn meshPipelineReload(string asset) -> task<bool>

meshPipelineFloat infallible​

infallible fn meshPipelineFloat() -> int

meshPipelineFloat2 infallible​

infallible fn meshPipelineFloat2() -> int

meshPipelineFloat3 infallible​

infallible fn meshPipelineFloat3() -> int

meshPipelineFloat4 infallible​

infallible fn meshPipelineFloat4() -> int

meshPipelineRgba16f infallible​

infallible fn meshPipelineRgba16f() -> int

meshPipelineR32f infallible​

infallible fn meshPipelineR32f() -> int

meshPipelineLinear infallible​

infallible fn meshPipelineLinear() -> int

meshPipelineNearest infallible​

infallible fn meshPipelineNearest() -> int

meshPipelineClamp infallible​

infallible fn meshPipelineClamp() -> int

meshPipelineRepeat infallible​

infallible fn meshPipelineRepeat() -> int

renderVertexFloat infallible​

infallible fn renderVertexFloat() -> int

renderVertexFloat2 infallible​

infallible fn renderVertexFloat2() -> int

renderVertexFloat3 infallible​

infallible fn renderVertexFloat3() -> int

renderVertexFloat4 infallible​

infallible fn renderVertexFloat4() -> int

renderVertexInt infallible​

infallible fn renderVertexInt() -> int

renderVertexInt2 infallible​

infallible fn renderVertexInt2() -> int

renderVertexUint infallible​

infallible fn renderVertexUint() -> int

renderVertexUint2 infallible​

infallible fn renderVertexUint2() -> int

renderVertexUbyte4Normalized infallible​

infallible fn renderVertexUbyte4Normalized() -> int

renderVertexUshort2 infallible​

infallible fn renderVertexUshort2() -> int

renderVertexHalf2 infallible​

infallible fn renderVertexHalf2() -> int

renderVertexUbyte4 infallible​

infallible fn renderVertexUbyte4() -> int

renderVertexUshort4 infallible​

infallible fn renderVertexUshort4() -> int

meshPipelineCreate​

fn meshPipelineCreate() -> MeshPipeline

meshPipelineInstalled​

fn meshPipelineInstalled() -> MeshPipeline