[−][src]Struct bedrock::SubpassDescription
VkSubpassDescriptionのビルダーオブジェクト
各アタッチメントのlayoutパラメータについて
layoutパラメータには、Subpass 中でアタッチメントがとるべきイメージレイアウトを指定する.
入力アタッチメントの挙動
- 配列の各要素は、シェーダにおける入力アタッチメントユニットの番号に対応している。
- 例: シェーダ内で
layout(input_attachment_index=X, set=Y, binding=Z)と指定された入力変数は、X番目にadd_input(...)されたアタッチメントを使用する。
- 例: シェーダ内で
- また、入力アタッチメントは Descriptor Set を通してパイプラインにバインドされている必要がある。このとき、入力アタッチメントデスクリプタは(set=Y, binding=Z)の位置に置かれている必要がある。
- Fragment shaders can use subpass input variables to access the contents of an input attachment at the fragment's (x, y, layer) framebuffer coordinates.
Methods
impl SubpassDescription[src]
pub fn new() -> Self[src]
pub fn add_input(self, index: u32, layout: ImageLayout) -> Self[src]
pub fn add_color_output(
self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> Self[src]
self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> Self
pub fn depth_stencil(self, index: u32, layout: ImageLayout) -> Self[src]
pub fn add_preserve(self, index: u32) -> Self[src]
pub fn add_preserves<Collection: IntoIterator<Item = u32>>(
self,
collection: Collection
) -> Self[src]
self,
collection: Collection
) -> Self
pub fn add_input_borrow(&mut self, index: u32, layout: ImageLayout) -> &mut Self[src]
pub fn add_color_output_borrow(
&mut self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> &mut Self[src]
&mut self,
index: u32,
layout: ImageLayout,
resolve: Option<(u32, ImageLayout)>
) -> &mut Self
pub fn depth_stencil_borrow(
&mut self,
index: u32,
layout: ImageLayout
) -> &mut Self[src]
&mut self,
index: u32,
layout: ImageLayout
) -> &mut Self
pub fn add_preserve_borrow(&mut self, index: u32) -> &mut Self[src]
pub fn add_preserves_borrow<Collection: IntoIterator<Item = u32>>(
&mut self,
collection: Collection
) -> &mut Self[src]
&mut self,
collection: Collection
) -> &mut Self
Auto Trait Implementations
impl RefUnwindSafe for SubpassDescription
impl Send for SubpassDescription
impl Sync for SubpassDescription
impl Unpin for SubpassDescription
impl UnwindSafe for SubpassDescription
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,