Documentation
¶
Index ¶
Constants ¶
const ( ThreadBaseWord = 5 PushWords = 6 )
The push block, a contract between the shell and the vulkan device alone: the dispatch record's five words, then ThreadBaseWord, the first thread of a piece of a split index or span dispatch, zero for an unsplit one. PushWords is the fixed part's count. The word counts of an entry with a variable-length buffer follow, one per data buffer binding.
const GroupWorkgroup = 128
GroupWorkgroup is a group entry's workgroup width, the unit the Vulkan backend widens a group row in (GroupThreads).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryPoint ¶
type EntryPoint struct {
Buffers []compile.BufferBinding
ParamsBinding int
Workgroup [2]int
Group bool
BufferLengths bool
PushSize int
Code []uint32
}
EntryPoint describes one emitted entry point, at the index of the module's entry it emits: the buffer bindings in order, the params binding (-1 when the entry takes none), the workgroup, whether the entry is a group entry, whose grid the host never splits, whether the push block carries word counts, the push block's size in bytes, and the module. The module's entry point is named main.