Struct mozangle::shaders::ffi::ShCompileOptions

source ·
#[repr(C, align(8))]
pub struct ShCompileOptions { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8]>, pub metal: ShCompileOptionsMetal, pub pls: ShCompileOptionsPLS, }

Fields§

§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 8]>§metal: ShCompileOptionsMetal§pls: ShCompileOptionsPLS

Implementations§

source§

impl ShCompileOptions

source

pub fn objectCode(&self) -> u64

source

pub fn set_objectCode(&mut self, val: u64)

source

pub fn variables(&self) -> u64

source

pub fn set_variables(&mut self, val: u64)

source

pub fn sourcePath(&self) -> u64

source

pub fn set_sourcePath(&mut self, val: u64)

source

pub fn intermediateTree(&self) -> u64

source

pub fn set_intermediateTree(&mut self, val: u64)

source

pub fn validateAST(&self) -> u64

source

pub fn set_validateAST(&mut self, val: u64)

source

pub fn validateLoopIndexing(&self) -> u64

source

pub fn set_validateLoopIndexing(&mut self, val: u64)

source

pub fn lineDirectives(&self) -> u64

source

pub fn set_lineDirectives(&mut self, val: u64)

source

pub fn removeInvariantAndCentroidForESSL3(&self) -> u64

source

pub fn set_removeInvariantAndCentroidForESSL3(&mut self, val: u64)

source

pub fn emulateAbsIntFunction(&self) -> u64

source

pub fn set_emulateAbsIntFunction(&mut self, val: u64)

source

pub fn enforcePackingRestrictions(&self) -> u64

source

pub fn set_enforcePackingRestrictions(&mut self, val: u64)

source

pub fn clampIndirectArrayBounds(&self) -> u64

source

pub fn set_clampIndirectArrayBounds(&mut self, val: u64)

source

pub fn limitExpressionComplexity(&self) -> u64

source

pub fn set_limitExpressionComplexity(&mut self, val: u64)

source

pub fn limitCallStackDepth(&self) -> u64

source

pub fn set_limitCallStackDepth(&mut self, val: u64)

source

pub fn initGLPosition(&self) -> u64

source

pub fn set_initGLPosition(&mut self, val: u64)

source

pub fn initGLPointSize(&self) -> u64

source

pub fn set_initGLPointSize(&mut self, val: u64)

source

pub fn unfoldShortCircuit(&self) -> u64

source

pub fn set_unfoldShortCircuit(&mut self, val: u64)

source

pub fn initOutputVariables(&self) -> u64

source

pub fn set_initOutputVariables(&mut self, val: u64)

source

pub fn scalarizeVecAndMatConstructorArgs(&self) -> u64

source

pub fn set_scalarizeVecAndMatConstructorArgs(&mut self, val: u64)

source

pub fn regenerateStructNames(&self) -> u64

source

pub fn set_regenerateStructNames(&mut self, val: u64)

source

pub fn rewriteDoWhileLoops(&self) -> u64

source

pub fn set_rewriteDoWhileLoops(&mut self, val: u64)

source

pub fn expandSelectHLSLIntegerPowExpressions(&self) -> u64

source

pub fn set_expandSelectHLSLIntegerPowExpressions(&mut self, val: u64)

source

pub fn flattenPragmaSTDGLInvariantAll(&self) -> u64

source

pub fn set_flattenPragmaSTDGLInvariantAll(&mut self, val: u64)

source

pub fn HLSLGetDimensionsIgnoresBaseLevel(&self) -> u64

source

pub fn set_HLSLGetDimensionsIgnoresBaseLevel(&mut self, val: u64)

source

pub fn rewriteTexelFetchOffsetToTexelFetch(&self) -> u64

source

pub fn set_rewriteTexelFetchOffsetToTexelFetch(&mut self, val: u64)

source

pub fn addAndTrueToLoopCondition(&self) -> u64

source

pub fn set_addAndTrueToLoopCondition(&mut self, val: u64)

source

pub fn rewriteIntegerUnaryMinusOperator(&self) -> u64

source

pub fn set_rewriteIntegerUnaryMinusOperator(&mut self, val: u64)

source

pub fn emulateIsnanFloatFunction(&self) -> u64

source

pub fn set_emulateIsnanFloatFunction(&mut self, val: u64)

source

pub fn useUnusedStandardSharedBlocks(&self) -> u64

source

pub fn set_useUnusedStandardSharedBlocks(&mut self, val: u64)

source

pub fn rewriteFloatUnaryMinusOperator(&self) -> u64

source

pub fn set_rewriteFloatUnaryMinusOperator(&mut self, val: u64)

source

pub fn emulateAtan2FloatFunction(&self) -> u64

source

pub fn set_emulateAtan2FloatFunction(&mut self, val: u64)

source

pub fn initializeUninitializedLocals(&self) -> u64

source

pub fn set_initializeUninitializedLocals(&mut self, val: u64)

source

pub fn initializeBuiltinsForInstancedMultiview(&self) -> u64

source

pub fn set_initializeBuiltinsForInstancedMultiview(&mut self, val: u64)

source

pub fn selectViewInNvGLSLVertexShader(&self) -> u64

source

pub fn set_selectViewInNvGLSLVertexShader(&mut self, val: u64)

source

pub fn clampPointSize(&self) -> u64

source

pub fn set_clampPointSize(&mut self, val: u64)

source

pub fn addAdvancedBlendEquationsEmulation(&self) -> u64

source

pub fn set_addAdvancedBlendEquationsEmulation(&mut self, val: u64)

source

pub fn dontUseLoopsToInitializeVariables(&self) -> u64

source

pub fn set_dontUseLoopsToInitializeVariables(&mut self, val: u64)

source

pub fn skipD3DConstantRegisterZero(&self) -> u64

source

pub fn set_skipD3DConstantRegisterZero(&mut self, val: u64)

source

pub fn clampFragDepth(&self) -> u64

source

pub fn set_clampFragDepth(&mut self, val: u64)

source

pub fn rewriteRepeatedAssignToSwizzled(&self) -> u64

source

pub fn set_rewriteRepeatedAssignToSwizzled(&mut self, val: u64)

source

pub fn emulateGLDrawID(&self) -> u64

source

pub fn set_emulateGLDrawID(&mut self, val: u64)

source

pub fn initSharedVariables(&self) -> u64

source

pub fn set_initSharedVariables(&mut self, val: u64)

source

pub fn forceAtomicValueResolution(&self) -> u64

source

pub fn set_forceAtomicValueResolution(&mut self, val: u64)

source

pub fn emulateGLBaseVertexBaseInstance(&self) -> u64

source

pub fn set_emulateGLBaseVertexBaseInstance(&mut self, val: u64)

source

pub fn emulateSeamfulCubeMapSampling(&self) -> u64

source

pub fn set_emulateSeamfulCubeMapSampling(&mut self, val: u64)

source

pub fn takeVideoTextureAsExternalOES(&self) -> u64

source

pub fn set_takeVideoTextureAsExternalOES(&mut self, val: u64)

source

pub fn addBaseVertexToVertexID(&self) -> u64

source

pub fn set_addBaseVertexToVertexID(&mut self, val: u64)

source

pub fn removeDynamicIndexingOfSwizzledVector(&self) -> u64

source

pub fn set_removeDynamicIndexingOfSwizzledVector(&mut self, val: u64)

source

pub fn allowTranslateUniformBlockToStructuredBuffer(&self) -> u64

source

pub fn set_allowTranslateUniformBlockToStructuredBuffer(&mut self, val: u64)

source

pub fn addVulkanYUVLayoutQualifier(&self) -> u64

source

pub fn set_addVulkanYUVLayoutQualifier(&mut self, val: u64)

source

pub fn disableARBTextureRectangle(&self) -> u64

source

pub fn set_disableARBTextureRectangle(&mut self, val: u64)

source

pub fn rewriteRowMajorMatrices(&self) -> u64

source

pub fn set_rewriteRowMajorMatrices(&mut self, val: u64)

source

pub fn ignorePrecisionQualifiers(&self) -> u64

source

pub fn set_ignorePrecisionQualifiers(&mut self, val: u64)

source

pub fn addVulkanDepthCorrection(&self) -> u64

source

pub fn set_addVulkanDepthCorrection(&mut self, val: u64)

source

pub fn forceShaderPrecisionHighpToMediump(&self) -> u64

source

pub fn set_forceShaderPrecisionHighpToMediump(&mut self, val: u64)

source

pub fn useSpecializationConstant(&self) -> u64

source

pub fn set_useSpecializationConstant(&mut self, val: u64)

source

pub fn addVulkanXfbEmulationSupportCode(&self) -> u64

source

pub fn set_addVulkanXfbEmulationSupportCode(&mut self, val: u64)

source

pub fn addVulkanXfbExtensionSupportCode(&self) -> u64

source

pub fn set_addVulkanXfbExtensionSupportCode(&mut self, val: u64)

source

pub fn initFragmentOutputVariables(&self) -> u64

source

pub fn set_initFragmentOutputVariables(&mut self, val: u64)

source

pub fn generateSpirvThroughGlslang(&self) -> u64

source

pub fn set_generateSpirvThroughGlslang(&mut self, val: u64)

source

pub fn addExplicitBoolCasts(&self) -> u64

source

pub fn set_addExplicitBoolCasts(&mut self, val: u64)

source

pub fn roundOutputAfterDithering(&self) -> u64

source

pub fn set_roundOutputAfterDithering(&mut self, val: u64)

source

pub fn precisionSafeDivision(&self) -> u64

source

pub fn set_precisionSafeDivision(&mut self, val: u64)

source

pub fn passHighpToPackUnormSnormBuiltins(&self) -> u64

source

pub fn set_passHighpToPackUnormSnormBuiltins(&mut self, val: u64)

source

pub fn new_bitfield_1( objectCode: u64, variables: u64, sourcePath: u64, intermediateTree: u64, validateAST: u64, validateLoopIndexing: u64, lineDirectives: u64, removeInvariantAndCentroidForESSL3: u64, emulateAbsIntFunction: u64, enforcePackingRestrictions: u64, clampIndirectArrayBounds: u64, limitExpressionComplexity: u64, limitCallStackDepth: u64, initGLPosition: u64, initGLPointSize: u64, unfoldShortCircuit: u64, initOutputVariables: u64, scalarizeVecAndMatConstructorArgs: u64, regenerateStructNames: u64, rewriteDoWhileLoops: u64, expandSelectHLSLIntegerPowExpressions: u64, flattenPragmaSTDGLInvariantAll: u64, HLSLGetDimensionsIgnoresBaseLevel: u64, rewriteTexelFetchOffsetToTexelFetch: u64, addAndTrueToLoopCondition: u64, rewriteIntegerUnaryMinusOperator: u64, emulateIsnanFloatFunction: u64, useUnusedStandardSharedBlocks: u64, rewriteFloatUnaryMinusOperator: u64, emulateAtan2FloatFunction: u64, initializeUninitializedLocals: u64, initializeBuiltinsForInstancedMultiview: u64, selectViewInNvGLSLVertexShader: u64, clampPointSize: u64, addAdvancedBlendEquationsEmulation: u64, dontUseLoopsToInitializeVariables: u64, skipD3DConstantRegisterZero: u64, clampFragDepth: u64, rewriteRepeatedAssignToSwizzled: u64, emulateGLDrawID: u64, initSharedVariables: u64, forceAtomicValueResolution: u64, emulateGLBaseVertexBaseInstance: u64, emulateSeamfulCubeMapSampling: u64, takeVideoTextureAsExternalOES: u64, addBaseVertexToVertexID: u64, removeDynamicIndexingOfSwizzledVector: u64, allowTranslateUniformBlockToStructuredBuffer: u64, addVulkanYUVLayoutQualifier: u64, disableARBTextureRectangle: u64, rewriteRowMajorMatrices: u64, ignorePrecisionQualifiers: u64, addVulkanDepthCorrection: u64, forceShaderPrecisionHighpToMediump: u64, useSpecializationConstant: u64, addVulkanXfbEmulationSupportCode: u64, addVulkanXfbExtensionSupportCode: u64, initFragmentOutputVariables: u64, generateSpirvThroughGlslang: u64, addExplicitBoolCasts: u64, roundOutputAfterDithering: u64, precisionSafeDivision: u64, passHighpToPackUnormSnormBuiltins: u64, ) -> __BindgenBitfieldUnit<[u8; 8]>

source

pub unsafe fn new() -> Self

source

pub unsafe fn new1(other: *const ShCompileOptions) -> Self

source§

impl ShCompileOptions

source

pub fn mozangle() -> Self

Trait Implementations§

source§

impl Clone for ShCompileOptions

source§

fn clone(&self) -> ShCompileOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ShCompileOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for ShCompileOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.