Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions src/CoreVideo/CVPixelBufferAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,7 @@ public int? PlaneAlignment {
}
}

// TODO: kCVPixelBufferIOSurfacePropertiesKey
#if !MONOMAC
// The presence of the IOSurfacePropertiesKey mandates the allocation via IOSurfaceProperty
/// <summary>If this key is set, this instructs CoreVideo to allocate the video buffers using the IOSurface.    This is required for some uses of pixel buffers.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
/// <summary>If this key is set, this instructs CoreVideo to allocate the video buffers using the <see cref="IOSurface.IOSurface" />. This is required for some uses of pixel buffers.</summary>
public bool? AllocateWithIOSurface {
set {
if (value.HasValue && value.Value)
Expand All @@ -277,11 +272,9 @@ public bool? AllocateWithIOSurface {
}
}

#if !__MACCATALYST__
#if !__MACCATALYST__ && !__MACOS__
/// <summary>Indicates whether the pixel buffer is compatible with OpenGL for Embedded Systems contexts.</summary>
/// <value>
/// </value>
/// <remarks>The property uses constant kCVPixelBufferOpenGLESCompatibilityKey value to access the underlying dictionary.</remarks>
/// <remarks>The property uses the <c>kCVPixelBufferOpenGLESCompatibilityKey</c> constant to access the underlying dictionary.</remarks>
[SupportedOSPlatform ("ios")]
[UnsupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("macos")]
Expand All @@ -297,12 +290,6 @@ public bool? OpenGLESCompatibility {
#endif

/// <summary>Indicates whether the pixel buffer is compatible with Metal.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("macos")]
public bool? MetalCompatibility {
set {
SetBooleanValue (CVPixelBuffer.MetalCompatibilityKey, value);
Expand All @@ -311,7 +298,6 @@ public bool? MetalCompatibility {
return GetBoolValue (CVPixelBuffer.MetalCompatibilityKey);
}
}
#endif
#endif
#endif // !COREBUILD
}
}
Loading