hxn

LayoutEntry

One entry of a bind group layout. sample_type, view_dimension, multisampled, format and access apply to texture and storage texture entries.

Constructor

function new(binding:Int, visibility:Int, kind:BindingKind, sampleType:SampleType, viewDimension:ViewDimension, multisampled:Bool, format:Format, access:StorageAccess)

Parameter: visibility ShaderStage bits.

Static methods

function hxnRead(input:BytesInput):LayoutEntry

Reads what the library wrote.

Properties

var binding:Int
var visibility:Int

ShaderStage bits.

var kind:BindingKind
var sampleType:SampleType
var viewDimension:ViewDimension
var multisampled:Bool
var format:Format
var access:StorageAccess

Methods

function hxnWrite(out:BytesBuffer):Void

Writes the fields in order, as the library reads them.