typealias ImmutablePtr<T, AddressSpace addrSpace, L>

Description

Represents a pointer to immutable data. Immutable data is known at compile time to remain unchanged during the entire execution of the program. This knowledge allows the compiler to perform more aggressive optimizations around the memory accesses through such pointers. If the data is changed during the program execution, the behavior is undefined and loaded data through such pointers may be invalid.

Signature

typealias ImmutablePtr<T, AddressSpace addrSpace, L> = 
    Ptr<T, Access.Immutable, AddressSpace.Generic, DefaultDataLayout>;

Generic Parameters

T

addrSpace : AddressSpace = AddressSpace.Device

L: IBufferDataLayout = DefaultDataLayout