pub struct OpenClGlSharing {
pub display: *mut c_void,
pub context: *mut c_void,
pub backend: GlBackend,
}Expand description
Caller-asserted GL-sharing handles for an OpenCl context.
Mirrors the (display, context, backend) triple from
GpuContext::OpenGL — these are the same values the caller
passed (or would pass) into clCreateContext’s
cl_context_properties[] array as the values of
CL_GL_CONTEXT_KHR and the matching platform property.
No share-group: cl_khr_gl_sharing’s property array binds the
CL context to a specific (display, context) pair, not to a share
group. Cross-share-group import is not standardised at the CL spec
level — the right escape hatch is cl_khr_external_memory (an
interop bridge layer’s job), not a share-group field here.
Fields§
§display: *mut c_void§context: *mut c_void§backend: GlBackendTrait Implementations§
Source§impl Clone for OpenClGlSharing
impl Clone for OpenClGlSharing
impl Copy for OpenClGlSharing
Source§impl Debug for OpenClGlSharing
impl Debug for OpenClGlSharing
impl Send for OpenClGlSharing
impl Sync for OpenClGlSharing
Auto Trait Implementations§
impl Freeze for OpenClGlSharing
impl RefUnwindSafe for OpenClGlSharing
impl Unpin for OpenClGlSharing
impl UnsafeUnpin for OpenClGlSharing
impl UnwindSafe for OpenClGlSharing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more