Class Type.SamplerType

Enclosing class:
Type

public static final class Type.SamplerType extends Type
  • Method Details

    • getComponentType

      @Nonnull public Type getComponentType()
      Description copied from class: Type
      For matrices and vectors, returns the scalar type of individual cells (e.g. mat2 has a component type of Float). For textures, returns the sampled type (e.g. texture2D has a component type of Float). For arrays, returns the component type of their base type. For all other types, returns the type itself.
      Overrides:
      getComponentType in class Type
    • getDimensions

      public int getDimensions()
      Description copied from class: Type
      For sampler/image types, returns the SpvDim. For all other types, causes an assertion failure.
      Overrides:
      getDimensions in class Type
    • isShadow

      public boolean isShadow()
      Description copied from class: Type
      True for samplers that sample a depth texture with comparison (e.g., samplerShadow, sampler2DShadow, HLSL SamplerComparisonState).
      Overrides:
      isShadow in class Type
    • isArrayed

      public boolean isArrayed()
      Description copied from class: Type
      True for arrayed texture.
      Overrides:
      isArrayed in class Type
    • isMultiSampled

      public boolean isMultiSampled()
      Overrides:
      isMultiSampled in class Type
    • isSampled

      public boolean isSampled()
      Overrides:
      isSampled in class Type
    • isCombinedSampler

      public boolean isCombinedSampler()
      Overrides:
      isCombinedSampler in class Type
      Returns:
      true for texture with sampler
    • isSeparateSampler

      public boolean isSeparateSampler()
      Overrides:
      isSeparateSampler in class Type
      Returns:
      true for pure sampler
    • isStorageImage

      public boolean isStorageImage()
      Overrides:
      isStorageImage in class Type
      Returns:
      true for image, except subpass input