[][src]Struct bedrock::vk::VkAttachmentDescription

#[repr(C)]
pub struct VkAttachmentDescription {
    pub flags: VkAttachmentDescriptionFlags,
    pub format: VkFormat,
    pub samples: VkSampleCountFlags,
    pub loadOp: VkAttachmentLoadOp,
    pub storeOp: VkAttachmentStoreOp,
    pub stencilLoadOp: VkAttachmentLoadOp,
    pub stencilStoreOp: VkAttachmentStoreOp,
    pub initialLayout: VkImageLayout,
    pub finalLayout: VkImageLayout,
}

Fields

flags: VkAttachmentDescriptionFlags

VkAttachmentDescriptionFlagBitsのビットマスクで、アタッチメントの追加プロパティを指定する

適用可能なビットマスク

format: VkFormat

アタッチメントとして使用されるイメージのピクセルフォーマットをVkFormatで指定する

samples: VkSampleCountFlags

VkSampleCountFlagBitsで定義される、イメージのサンプル数

適用可能なビットマスク

1, 2, 4, 8, 16, 32, 64

loadOp: VkAttachmentLoadOp

アタッチメントの色/深度が、最初に使用する Subpass の開始時にどうあるべきかを指定する

適用可能な値

必要なアクセスタイプ

深度を持つアタッチメントの場合色を持つアタッチメントの場合
VK_ATTACHMENT_LOAD_OP_LOADVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BITVK_ACCESS_COLOR_ATTTACHMENT_READ_BIT
VK_ATTACHMENT_LOAD_OP_CLEARVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BITVK_ACCESS_COLOR_ATTTACHMENT_WRITE_BIT
VK_ATTACHMENT_LOAD_OP_DONT_CAREVK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BITVK_ACCESS_COLOR_ATTTACHMENT_WRITE_BIT
storeOp: VkAttachmentStoreOp

アタッチメントの色/深度を、最後に使用した Subpass の終了時にどう扱うかを指定する

適用可能な値

必要なアクセスタイプ

stencilLoadOp: VkAttachmentLoadOp

アタッチメントのステンシル値が、最初に使用する Subpass の開始時にどうあるべきかを指定する

適用可能な値

必要なアクセスタイプ

stencilStoreOp: VkAttachmentStoreOp

アタッチメントのステンシル値を、最後に使用した Subpass の終了時にどう扱うかを指定する

適用可能な値

必要なアクセスタイプ

initialLayout: VkImageLayout

RenderPass が開始する際のイメージレイアウト

finalLayout: VkImageLayout

RenderPass が終了する際に遷移するイメージレイアウト。 必要であれば、同一の RenderPass の各 Subpass で異なるイメージレイアウトを使うことができる。

Trait Implementations

impl Borrow<AttachmentDescription> for VkAttachmentDescription[src]

impl BorrowMut<AttachmentDescription> for VkAttachmentDescription[src]

impl Clone for VkAttachmentDescription[src]

impl Debug for VkAttachmentDescription[src]

impl Eq for VkAttachmentDescription[src]

impl PartialEq<VkAttachmentDescription> for VkAttachmentDescription[src]

impl StructuralEq for VkAttachmentDescription[src]

impl StructuralPartialEq for VkAttachmentDescription[src]

Auto Trait Implementations

impl RefUnwindSafe for VkAttachmentDescription

impl Send for VkAttachmentDescription

impl Sync for VkAttachmentDescription

impl Unpin for VkAttachmentDescription

impl UnwindSafe for VkAttachmentDescription

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.