Skip to content

Commit 658d7d2

Browse files
committed
Make all sample_buffer() return Option
1 parent b8e4231 commit 658d7d2

4 files changed

+4
-4
lines changed

src/acceleration_structure_pass.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl AccelerationStructurePassSampleBufferAttachmentDescriptor {
7272
}
7373

7474
impl AccelerationStructurePassSampleBufferAttachmentDescriptorRef {
75-
pub fn sample_buffer(&self) -> &CounterSampleBufferRef {
75+
pub fn sample_buffer(&self) -> Option<&CounterSampleBufferRef> {
7676
unsafe { msg_send![self, sampleBuffer] }
7777
}
7878

src/blitpass.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl BlitPassSampleBufferAttachmentDescriptor {
6666
}
6767

6868
impl BlitPassSampleBufferAttachmentDescriptorRef {
69-
pub fn sample_buffer(&self) -> &CounterSampleBufferRef {
69+
pub fn sample_buffer(&self) -> Option<&CounterSampleBufferRef> {
7070
unsafe { msg_send![self, sampleBuffer] }
7171
}
7272

src/computepass.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl ComputePassSampleBufferAttachmentDescriptor {
7171
}
7272

7373
impl ComputePassSampleBufferAttachmentDescriptorRef {
74-
pub fn sample_buffer(&self) -> &CounterSampleBufferRef {
74+
pub fn sample_buffer(&self) -> Option<&CounterSampleBufferRef> {
7575
unsafe { msg_send![self, sampleBuffer] }
7676
}
7777

src/renderpass.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ impl RenderPassSampleBufferAttachmentDescriptor {
266266
}
267267

268268
impl RenderPassSampleBufferAttachmentDescriptorRef {
269-
pub fn sample_buffer(&self) -> &CounterSampleBufferRef {
269+
pub fn sample_buffer(&self) -> Option<&CounterSampleBufferRef> {
270270
unsafe { msg_send![self, sampleBuffer] }
271271
}
272272

0 commit comments

Comments
 (0)