레이아웃
export 24개
구조체와 바인딩 리소스를 한 번만 선언하는 선언자입니다. 호스트와 두 대상이 같은 선언을 씁니다.
시그니처, 설명, 예제는 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
-
arrayOf함수 - Declare a fixed-length array field inside a uniformStruct field map.
-
builtin함수 - Attribute a field or an entry-point parameter with a @builtin(<name>), the value the pipeline supplies to the shader.
-
constDecl함수 - Declare a module-level scalar constant together with its typed reference in one call.
-
ConstHandle인터페이스 - The handle constDecl returns: a module-level constant and its typed reference, declared together so the name is written once.
-
FieldSpec인터페이스 - One struct field or entry-point parameter carrying a stage attribute.
-
FixedTypeBuiltinName타입 - The WgslBuiltinName ids whose type WGSL fixes, every id except clip_distances, whose array<f32, N> length the author picks.
-
HandleArray인터페이스 - A fixed-size array<Element, N> uniform field whose element is a struct handle: patterns: arrayOf.
-
hostBlock함수 - Declare a host-owned uniform block: a whole struct of values the host supplies, from one declaration that works on both targets.
-
hostUniform함수 - Declare a host-owned uniform: one scalar, vector or matrix value the host supplies, spelled the way the host's target spells it.
-
ioStruct함수 - Declare a struct that crosses a stage boundary, a vertex output, a fragment input, a compute IO record, from one field map.
-
IoStruct인터페이스 - The handle ioStruct returns: a struct that crosses a stage boundary, whose fields carry @builtin or @location attributes.
-
location함수 - Attribute a field or an entry-point parameter with @location(<n>), a slot the pipeline or the previous stage supplies, with an optional @interpolate(<mode>).
-
PlainStruct인터페이스 - The handle structDecl returns: a struct declared for something other than a stage's IO boundary, such as a storage-buffer element type (paired with storageBuffer) or a struct nested inside another struct.
-
resource함수 - Declare a bound resource that is not a struct: a texture or a sampler.
-
Resource인터페이스 - A single-binding handle: a BindingDecl for module plus a typed access node.
-
storageBuffer함수 - Declare a bound array<Element> storage buffer from its element alone.
-
StorageBuffer인터페이스 - The handle storageBuffer returns: a bound runtime-length array<Element> storage buffer.
-
structDecl함수 - Declare a plain struct: one that never crosses a stage boundary.
-
TypeArray인터페이스 - A fixed-size array uniform field with a plain element type: dash_array: arrayOf(vec4fT, 2).
-
uniformStruct함수 - Declare a uniform-buffer struct together with its binding, from one field map.
-
UniformStruct인터페이스 - The handle uniformStruct returns: a struct and its binding declared together.
-
WGSL_BUILTIN_NAMES상수 - Every WgslBuiltinName value as a runtime array.
-
WGSL_BUILTIN_TYPES상수 - The type each @builtin(<name>) supplies, for every id WGSL gives one fixed type.
-
WgslBuiltinName타입 - Every @builtin(<name>) id WGSL defines.