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
Parameters for creating a runtime resource.
Fields§
§resourceId: RpsResourceIdID of the resource declaration.
desc: RpsResourceDescResource description.
originalDesc: RpsVariableUmodified resource description as originally defined by the user.
clearValue: RpsClearValueDefault value for clearing the resource.
allocRequirement: RpsGpuMemoryRequirementAllocation requirements.
allocPlacement: RpsHeapPlacementAllocation placement parameters.
allAccesses: RpsAccessAttrCombined accesses of the resource.
initialAccess: RpsAccessAttrInital access of the resource in a frame.
numMutableFormats: u32Number of mutable formats the resource can be used with.
mutableFormats: *mut RpsFormatPointer to an array of RpsFormat with numMutableFormats
bBufferFormattedWrite: RpsBoolIndicator for a formatted texel buffer (maps to
bBufferFormattedRead: RpsBoolIndicator for a formatted texel buffer (maps to
phRuntimeResource: *mut RpsRuntimeResourcePointer 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