pub(super) fn add_image_usage(
        &mut self,
        user: RenderGraphImageUser,
        version: RenderGraphImageVersionId,
        usage_type: RenderGraphImageUsageType,
        preferred_layout: dsc::ImageLayout,
        subresource_range: RenderGraphImageSubresourceRange,
        view_type: dsc::ImageViewType,
        // _access_flags: vk::AccessFlags,
        // _stage_flags: vk::PipelineStageFlags,
        // _image_aspect_flags: vk::ImageAspectFlags,
    ) -> RenderGraphImageUsageId {
        let usage_id = RenderGraphImageUsageId(self.image_usages.len());
        self.image_usages.push(RenderGraphImageUsage {
            user,
            usage_type,
            version,
            preferred_layout,
            subresource_range,
            view_type,
            //access_flags,
            //stage_flags,
            //image_aspect_flags
        });
        usage_id
    }
//NOTE: While the image aspect flags may seem redundant with subresource_range here, the
// subresource_range should indicate the image view's supported aspects and the provided
// image aspect flags the aspects that are actually being used
While the image aspect flags may seem redundant with subresource_range here, the
subresource_range should indicate the image view's supported aspects and the provided
image aspect flags the aspects that are actually being used
While the image aspect flags may seem redundant with subresource_range here the subresource_range should indicate the image view ' s supported aspects and the provided image aspect flags the aspects that are actually being used
pub(super) fn add_image_usage(
        &mut self,
        user: RenderGraphImageUser,
        version: RenderGraphImageVersionId,
        usage_type: RenderGraphImageUsageType,
        preferred_layout: dsc::ImageLayout,
        subresource_range: RenderGraphImageSubresourceRange,
        view_type: dsc::ImageViewType,
        // _access_flags: vk::AccessFlags,
        // _stage_flags: vk::PipelineStageFlags,
        // _image_aspect_flags: vk::ImageAspectFlags,
    ) -> RenderGraphImageUsageId {
        let usage_id = RenderGraphImageUsageId(self.image_usages.len());
        self.image_usages.push(RenderGraphImageUsage {
            user,
            usage_type,
            version,
            preferred_layout,
            subresource_range,
            view_type,
            //access_flags,
            //stage_flags,
            //image_aspect_flags
        });
        usage_id
    }
pub ( super ) fn add_image_usage ( & mut self , user : RenderGraphImageUser , version : RenderGraphImageVersionId , usage_type : RenderGraphImageUsageType , preferred_layout : dsc :: ImageLayout , subresource_range : RenderGraphImageSubresourceRange , view_type : dsc :: ImageViewType , // _access_flags: vk::AccessFlags, // _stage_flags: vk::PipelineStageFlags, // _image_aspect_flags: vk::ImageAspectFlags, ) -> RenderGraphImageUsageId { let usage_id = RenderGraphImageUsageId ( self . image_usages . len ( ) ) ; self . image_usages . push ( RenderGraphImageUsage { user , usage_type , version , preferred_layout , subresource_range , view_type , //access_flags, //stage_flags, //image_aspect_flags } ) ; usage_id }
NOTE: While the image aspect flags may seem redundant with subresource_range here, the
subresource_range should indicate the image view's supported aspects and the provided
image aspect flags the aspects that are actually being used
NOTE : While the image aspect flags may seem redundant with subresource_range here the subresource_range should indicate the image view ' s supported aspects and the provided image aspect flags the aspects that are actually being used
&mut self
user
RenderGraphImageUser
version
RenderGraphImageVersionId
usage_type
RenderGraphImageUsageType
preferred_layout
dsc::ImageLayout
subresource_range
RenderGraphImageSubresourceRange
view_type
dsc::ImageViewType
&mut self
user
RenderGraphImageUser
version
RenderGraphImageVersionId
usage_type
RenderGraphImageUsageType
preferred_layout
dsc::ImageLayout
subresource_range
RenderGraphImageSubresourceRange
view_type
dsc::ImageViewType