Struct rps_sys::RpsRuntimeOpCreateResourceArgs
source · #[repr(C)]pub struct RpsRuntimeOpCreateResourceArgs {Show 13 fields
pub resourceId: RpsResourceId,
pub desc: RpsResourceDesc,
pub originalDesc: RpsVariable,
pub clearValue: RpsClearValue,
pub allocRequirement: RpsGpuMemoryRequirement,
pub allocPlacement: RpsHeapPlacement,
pub allAccesses: RpsAccessAttr,
pub initialAccess: RpsAccessAttr,
pub numMutableFormats: u32,
pub mutableFormats: *mut RpsFormat,
pub bBufferFormattedWrite: RpsBool,
pub bBufferFormattedRead: RpsBool,
pub phRuntimeResource: *mut RpsRuntimeResource,
}Expand description
@brief Parameters for creating a runtime resource.
Fields§
§resourceId: RpsResourceId< ID of the resource declaration.
desc: RpsResourceDesc< Resource description.
originalDesc: RpsVariable< Umodified resource description as originally defined by the user.
clearValue: RpsClearValue< Default value for clearing the resource.
allocRequirement: RpsGpuMemoryRequirement< Allocation requirements.
allocPlacement: RpsHeapPlacement< Allocation placement parameters.
allAccesses: RpsAccessAttr< Combined accesses of the resource.
initialAccess: RpsAccessAttr< Inital access of the resource in a frame.
numMutableFormats: u32< Number of mutable formats the resource can be used with.
mutableFormats: *mut RpsFormat< Pointer to an array of
bBufferFormattedWrite: RpsBool< Indicator for a formatted texel buffer (maps to
bBufferFormattedRead: RpsBool< Indicator for a formatted texel buffer (maps to
phRuntimeResource: *mut RpsRuntimeResource< Pointer to a handle to the runtime resource to be returned.
Trait Implementations§
source§impl Clone for RpsRuntimeOpCreateResourceArgs
impl Clone for RpsRuntimeOpCreateResourceArgs
source§fn clone(&self) -> RpsRuntimeOpCreateResourceArgs
fn clone(&self) -> RpsRuntimeOpCreateResourceArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more