findMemoryTypeIndex

Find a memory type index suitable for the given allowedIndexMask and info.

uint
findMemoryTypeIndex

Parameters

types MemoryType[]

the memory types obtained from a device

allowedIndexMask uint

the mask obtained from MemoryRequirements.memTypeMask

options AllocOptions

an optional AllocOptions that will constraint the choice

Return Value

Type: uint

the found index of memory type, or uint.max if none could satisfy requirements

Meta