레이아웃

레이아웃

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.

이 페이지 편집 문제 보고