-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing MTLRasterizationRateLayerDescriptor methods
`sampleCount` was skipped because it was defined twice, so let's define it manually instead. `setSampleCount:` was accidentally skipped too.
- Loading branch information
Showing
5 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use crate::MTLRasterizationRateLayerDescriptor; | ||
use objc2::extern_methods; | ||
|
||
extern_methods!( | ||
unsafe impl MTLRasterizationRateLayerDescriptor { | ||
/// The number of quality samples that this descriptor uses to | ||
/// describe its current function, for the horizontal and vertical | ||
/// axis. The depth component of the returned `MTLSize` is always 0. | ||
#[cfg(feature = "MTLTypes")] | ||
#[method(sampleCount)] | ||
pub fn sampleCount(&self) -> crate::MTLSize; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters