Skip to content

Commit

Permalink
Update to Beta 4
Browse files Browse the repository at this point in the history
Generate bindings
  • Loading branch information
Jasper-Bekkers committed Sep 25, 2024
1 parent 1ccedef commit 40dc6a9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bindings_generator/vendor/metal_irconverter/ir_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#define IR_VERSION_MAJOR 2
#define IR_VERSION_MINOR 0
#define IR_VERSION_PATCH 3
#define IR_VERSION_PATCH 4

#define IR_SUPPORTS_VERSION(major, minor, patch) \
((major < IR_VERSION_MAJOR) || \
Expand Down
19 changes: 10 additions & 9 deletions bindings_generator/vendor/metal_irconverter/metal_irconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#import <dispatch/dispatch.h>
#endif // __APPLE__

#if _MSC_VER
#ifdef _MSC_VER
#define IR_DEPRECATED(message) __declspec(deprecated(message))
#else
#define IR_DEPRECATED(message) __attribute__((deprecated(message)))
Expand Down Expand Up @@ -187,14 +187,15 @@ typedef enum IRStaticBorderColor

typedef enum IRCompatibilityFlags
{
IRCompatibilityFlagNone = 0,
IRCompatibilityFlagBoundsCheck = (1 << 0),
IRCompatibilityFlagVertexPositionInfToNan = (1 << 1),
IRCompatibilityFlagTextureMinLODClamp = (1 << 2),
IRCompatibilityFlagSamplerLODBias = (1 << 3),
IRCompatibilityFlagPositionInvariance = (1 << 4),
IRCompatibilityFlagSampleNanToZero = (1 << 5),
IRCompatibilityFlagTexWriteRoundingRTZ = (1 << 6),
IRCompatibilityFlagNone = 0,
IRCompatibilityFlagBoundsCheck = (1 << 0),
IRCompatibilityFlagVertexPositionInfToNan = (1 << 1),
IRCompatibilityFlagTextureMinLODClamp = (1 << 2),
IRCompatibilityFlagSamplerLODBias = (1 << 3),
IRCompatibilityFlagPositionInvariance = (1 << 4),
IRCompatibilityFlagSampleNanToZero = (1 << 5),
IRCompatibilityFlagTexWriteRoundingRTZ = (1 << 6),
IRCompatibilityFlagSuppress2DComputeDerivativeErrors = (1 << 7)
} IRCompatibilityFlags;

typedef struct IRStaticSamplerDescriptor
Expand Down
5 changes: 4 additions & 1 deletion src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pub const IR_VERSION_MAJOR: u32 = 2;
pub const IR_VERSION_MINOR: u32 = 0;
pub const IR_VERSION_PATCH: u32 = 3;
pub const IR_VERSION_PATCH: u32 = 4;
pub const IRDescriptorRangeOffsetAppend: u32 = 4294967295;
pub const IRIntrinsicMaskClosestHitAll: u32 = 2147483647;
pub const IRIntrinsicMaskMissShaderAll: u32 = 32767;
Expand Down Expand Up @@ -636,6 +636,9 @@ impl IRCompatibilityFlags {
impl IRCompatibilityFlags {
pub const TexWriteRoundingRTZ: IRCompatibilityFlags = IRCompatibilityFlags(64);
}
impl IRCompatibilityFlags {
pub const Suppress2DComputeDerivativeErrors: IRCompatibilityFlags = IRCompatibilityFlags(128);
}
impl ::std::ops::BitOr<IRCompatibilityFlags> for IRCompatibilityFlags {
type Output = Self;
#[inline]
Expand Down

0 comments on commit 40dc6a9

Please sign in to comment.