Metal.ResourceCommon interface for Metal resources like buffers and textures. See MTLResource.
val sexp_of_t : t -> Sexplib0.Sexp.tval set_label : t -> string -> unitval get_label : t -> stringmodule PurgeableState : sig ... endResource purgeability states. See MTLPurgeableState.
val set_purgeable_state : t -> PurgeableState.t -> PurgeableState.tSets the purgeable state and returns the previous state.
module CPUCacheMode : sig ... endCPU cache modes. See MTLCPUCacheMode.
val get_cpu_cache_mode : t -> CPUCacheMode.tmodule StorageMode : sig ... endResource storage modes. See MTLStorageMode.
val get_storage_mode : t -> StorageMode.tmodule HazardTrackingMode : sig ... endResource hazard tracking modes. See MTLHazardTrackingMode.
val get_hazard_tracking_mode : t -> HazardTrackingMode.tval get_resource_options : t -> ResourceOptions.tval get_heap : t -> Runtime.Objc.object_tGets the heap the resource was allocated from (if any). Result type needs Heap module.
val get_heap_offset : t -> intGets the offset within the heap (if placed).
val get_allocated_size : t -> intval make_aliasable : t -> unitAllows future heap allocations to alias this resource's memory.
val is_aliasable : t -> bool