/// Returns the default buffer collection constraints set on the buffer collection.
///
/// The returned buffer collection constraints are modified by the caller to contain the appropriate
/// image format constraints before being set on the collection.
Returns the default buffer collection constraints set on the buffer collection.
The returned buffer collection constraints are modified by the caller to contain the appropriate
image format constraints before being set on the collection.
Returns the default buffer collection constraints set on the buffer collection . The returned buffer collection constraints are modified by the caller to contain the appropriate image format constraints before being set on the collection .
pub fn buffer_collection_constraints() -> fsysmem::BufferCollectionConstraints {
    let usage = fsysmem::BufferUsage {
        cpu: fsysmem::CPU_USAGE_READ_OFTEN | fsysmem::CPU_USAGE_WRITE_OFTEN,
        ..BUFFER_USAGE_DEFAULT
    };
    let buffer_memory_constraints = fsysmem::BufferMemoryConstraints {
        ram_domain_supported: true,
        cpu_domain_supported: true,
        ..BUFFER_MEMORY_CONSTRAINTS_DEFAULT
    };
    fsysmem::BufferCollectionConstraints {
        min_buffer_count: 1,
        usage,
        has_buffer_memory_constraints: true,
        buffer_memory_constraints,
        image_format_constraints_count: 1,
        ..BUFFER_COLLECTION_CONSTRAINTS_DEFAULT
    }
}
pub fn buffer_collection_constraints ( ) -> fsysmem :: BufferCollectionConstraints { let usage = fsysmem :: BufferUsage { cpu : fsysmem :: CPU_USAGE_READ_OFTEN | fsysmem :: CPU_USAGE_WRITE_OFTEN , .. BUFFER_USAGE_DEFAULT } ; let buffer_memory_constraints = fsysmem :: BufferMemoryConstraints { ram_domain_supported : true , cpu_domain_supported : true , .. BUFFER_MEMORY_CONSTRAINTS_DEFAULT } ; fsysmem :: BufferCollectionConstraints { min_buffer_count : 1 , usage , has_buffer_memory_constraints : true , buffer_memory_constraints , image_format_constraints_count : 1 , .. BUFFER_COLLECTION_CONSTRAINTS_DEFAULT } }
Returns the default buffer collection constraints set on the buffer collection.
Returns the default buffer collection constraints set on the buffer collection .