ImageRc

Undocumented in source.

Members

Functions

bindMemory
void bindMemory(DeviceMemory mem, size_t offset)

The image keeps a reference of the device memory

Properties

memoryRequirements
MemoryRequirements memoryRequirements [@property getter]
Undocumented in source.

Inherited Members

From Image

type
ImageType type [@property getter]
Undocumented in source.
format
Format format [@property getter]
Undocumented in source.
dims
ImageDims dims [@property getter]
Undocumented in source.
levels
uint levels [@property getter]
Undocumented in source.
createView
ImageView createView(ImageType viewtype, ImageSubresourceRange isr, Swizzle swizzle)
Undocumented in source.

From AtomicRefCounted

refCount
size_t refCount [@property getter]

Atomically load the number of active references.

retain
void retain()

Atomically increment the reference count.

release
void release()

Atomically decrement the reference count and dispose if it reaches zero. The object is locked using its own mutex when dispose is called.

rcLock
shared(AtomicRefCounted) rcLock()

Get a copy of this RefCounted instance if the refCount >= 1. This increases the refCount by 1. This should only be used to keep weak reference and ensures that the resource is not disposed. The operation is atomic.

Meta