# [−][src]Trait shade_runner::layouts::ShaderInterfaceDef

    pub unsafe trait ShaderInterfaceDef where
        <Self::Iter as Iterator>::Item == ShaderInterfaceDefEntry, {
        type Iter: ExactSizeIterator;
        fn elements(&self) -> Self::Iter;
    }

Types that contain the definition of an interface between two shader stages, or between the outside and a shader stage.

# Safety

- Must only provide one entry per location.
- The format of each element must not be larger than 128 bits.

## Associated Types

### `type Iter: ExactSizeIterator`

Iterator returned by `elements`.

Loading content...

## Required methods

### `fn elements(&self) -> Self::Iter`

Iterates over the elements of the interface.

Loading content...

## Implementations on Foreign Types

### `impl ShaderInterfaceDef for EmptyShaderInterfaceDef`[src]

#### `type Iter = Empty<ShaderInterfaceDefEntry>`

#### `fn elements(&self) -> <EmptyShaderInterfaceDef as ShaderInterfaceDef>::Iter`[src]

Loading content...

## Implementors

### `impl ShaderInterfaceDef for Input`[src]

#### `type Iter = InputIter`

#### `fn elements(&self) -> InputIter`[src]

### `impl ShaderInterfaceDef for Output`[src]

#### `type Iter = OutputIter`

#### `fn elements(&self) -> OutputIter`[src]

Loading content...

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)