[][src]Trait rendy_chain::Resource

pub trait Resource: 'static {
    type Access: AccessFlags;
    type Usage: UsageFlags;
    type Layout: Copy + Debug + 'static;
    fn no_usage() -> Self::Usage;
fn layout_for(access: Self::Access) -> Self::Layout; }

Abstracts resource types that uses different usage flags and layouts types.

Associated Types

type Access: AccessFlags

Access flags for resource type.

type Usage: UsageFlags

Usage flags type for the resource.

type Layout: Copy + Debug + 'static

Layout type for the resource.

Loading content...

Required methods

fn no_usage() -> Self::Usage

Empty usage.

fn layout_for(access: Self::Access) -> Self::Layout

Layout suitable for specified accesses.

Loading content...

Implementors

impl Resource for Buffer[src]

type Access = Access

type Usage = Usage

type Layout = ()

impl Resource for Image[src]

type Access = Access

type Usage = Usage

type Layout = Layout

Loading content...