Skip to main content

cudaGraphicsResourceSetMapFlags

Function cudaGraphicsResourceSetMapFlags 

Source
pub unsafe extern "C" fn cudaGraphicsResourceSetMapFlags(
    resource: cudaGraphicsResource_t,
    flags: c_uint,
) -> cudaError_t
Expand description

Set usage flags for mapping a graphics resource.

Set flags for mapping the graphics resource resource.

Changes to flags will take effect the next time resource is mapped. The flags argument may be any of the following:

If resource is presently mapped for access by CUDA then cudaErrorUnknown is returned. If flags is not one of the above values then cudaErrorInvalidValue is returned.

ยงParameters

  • resource: Registered resource to set flags for.
  • flags: Parameters for resource mapping.