use crate::common::*;
use crate::Foundation::*;
use crate::Metal::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
pub struct MTLBlitPassSampleBufferAttachmentDescriptor;
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
unsafe impl ClassType for MTLBlitPassSampleBufferAttachmentDescriptor {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
unsafe impl NSCopying for MTLBlitPassSampleBufferAttachmentDescriptor {}
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
unsafe impl NSObjectProtocol for MTLBlitPassSampleBufferAttachmentDescriptor {}
extern_methods!(
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
unsafe impl MTLBlitPassSampleBufferAttachmentDescriptor {
#[method_id(@__retain_semantics Other sampleBuffer)]
pub unsafe fn sampleBuffer(&self)
-> Option<Id<ProtocolObject<dyn MTLCounterSampleBuffer>>>;
#[method(setSampleBuffer:)]
pub unsafe fn setSampleBuffer(
&self,
sample_buffer: Option<&ProtocolObject<dyn MTLCounterSampleBuffer>>,
);
#[method(startOfEncoderSampleIndex)]
pub unsafe fn startOfEncoderSampleIndex(&self) -> NSUInteger;
#[method(setStartOfEncoderSampleIndex:)]
pub unsafe fn setStartOfEncoderSampleIndex(
&self,
start_of_encoder_sample_index: NSUInteger,
);
#[method(endOfEncoderSampleIndex)]
pub unsafe fn endOfEncoderSampleIndex(&self) -> NSUInteger;
#[method(setEndOfEncoderSampleIndex:)]
pub unsafe fn setEndOfEncoderSampleIndex(&self, end_of_encoder_sample_index: NSUInteger);
}
);
extern_methods!(
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
unsafe impl MTLBlitPassSampleBufferAttachmentDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptorArray")]
pub struct MTLBlitPassSampleBufferAttachmentDescriptorArray;
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptorArray")]
unsafe impl ClassType for MTLBlitPassSampleBufferAttachmentDescriptorArray {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptorArray")]
unsafe impl NSObjectProtocol for MTLBlitPassSampleBufferAttachmentDescriptorArray {}
extern_methods!(
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptorArray")]
unsafe impl MTLBlitPassSampleBufferAttachmentDescriptorArray {
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
#[method_id(@__retain_semantics Other objectAtIndexedSubscript:)]
pub unsafe fn objectAtIndexedSubscript(
&self,
attachment_index: NSUInteger,
) -> Id<MTLBlitPassSampleBufferAttachmentDescriptor>;
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptor")]
#[method(setObject:atIndexedSubscript:)]
pub unsafe fn setObject_atIndexedSubscript(
&self,
attachment: Option<&MTLBlitPassSampleBufferAttachmentDescriptor>,
attachment_index: NSUInteger,
);
}
);
extern_methods!(
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptorArray")]
unsafe impl MTLBlitPassSampleBufferAttachmentDescriptorArray {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Metal_MTLBlitPassDescriptor")]
pub struct MTLBlitPassDescriptor;
#[cfg(feature = "Metal_MTLBlitPassDescriptor")]
unsafe impl ClassType for MTLBlitPassDescriptor {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Metal_MTLBlitPassDescriptor")]
unsafe impl NSCopying for MTLBlitPassDescriptor {}
#[cfg(feature = "Metal_MTLBlitPassDescriptor")]
unsafe impl NSObjectProtocol for MTLBlitPassDescriptor {}
extern_methods!(
#[cfg(feature = "Metal_MTLBlitPassDescriptor")]
unsafe impl MTLBlitPassDescriptor {
#[method_id(@__retain_semantics Other blitPassDescriptor)]
pub unsafe fn blitPassDescriptor() -> Id<MTLBlitPassDescriptor>;
#[cfg(feature = "Metal_MTLBlitPassSampleBufferAttachmentDescriptorArray")]
#[method_id(@__retain_semantics Other sampleBufferAttachments)]
pub unsafe fn sampleBufferAttachments(
&self,
) -> Id<MTLBlitPassSampleBufferAttachmentDescriptorArray>;
}
);
extern_methods!(
#[cfg(feature = "Metal_MTLBlitPassDescriptor")]
unsafe impl MTLBlitPassDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);