doc: document image handles
This commit is contained in:
parent
e652f0bb1d
commit
e6f1361199
3 changed files with 13 additions and 4 deletions
|
@ -19,7 +19,9 @@ use crate::framebuffer::OwnedFramebuffer;
|
|||
/// Contains an `ID3D11ShaderResourceView`, and a size.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct D3D11InputView {
|
||||
/// A handle to the shader resource view.
|
||||
pub handle: ID3D11ShaderResourceView,
|
||||
/// The size of the image.
|
||||
pub size: Size<u32>,
|
||||
}
|
||||
|
||||
|
@ -28,7 +30,9 @@ pub struct D3D11InputView {
|
|||
/// Contains an `ID3D11RenderTargetView`, and a size.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct D3D11OutputView {
|
||||
/// A handle to the render target view.
|
||||
pub handle: ID3D11RenderTargetView,
|
||||
/// The size of the image.
|
||||
pub size: Size<u32>,
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ use librashader_presets::TextureConfig;
|
|||
use librashader_runtime::image::{Image, BGRA8};
|
||||
use librashader_runtime::scaling::MipmapSize;
|
||||
|
||||
pub struct LutTexture {
|
||||
pub(crate) struct LutTexture {
|
||||
pub memory: VulkanImageMemory,
|
||||
pub staging: VulkanBuffer,
|
||||
pub image: InputImage,
|
||||
|
|
|
@ -183,7 +183,7 @@ impl OwnedImage {
|
|||
Ok(size)
|
||||
}
|
||||
|
||||
pub fn as_input(&self, filter: FilterMode, wrap_mode: WrapMode) -> InputImage {
|
||||
pub(crate) fn as_input(&self, filter: FilterMode, wrap_mode: WrapMode) -> InputImage {
|
||||
InputImage {
|
||||
image: self.image.clone(),
|
||||
image_view: self.image_view.clone(),
|
||||
|
@ -509,14 +509,19 @@ impl Drop for OwnedImage {
|
|||
/// A handle to a `VkImage` with size and format information.
|
||||
#[derive(Clone)]
|
||||
pub struct VulkanImage {
|
||||
pub size: Size<u32>,
|
||||
/// A handle to the `VkImage`.
|
||||
pub image: vk::Image,
|
||||
/// The size of the image.
|
||||
pub size: Size<u32>,
|
||||
/// The `VkFormat` of the image.
|
||||
pub format: vk::Format,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct InputImage {
|
||||
pub(crate) struct InputImage {
|
||||
/// A handle to the `VkImage`.
|
||||
pub image: VulkanImage,
|
||||
/// A handle to the `VkImageView` for the image.
|
||||
pub image_view: vk::ImageView,
|
||||
pub wrap_mode: WrapMode,
|
||||
pub filter_mode: FilterMode,
|
||||
|
|
Loading…
Add table
Reference in a new issue