• Slang Standard Library Reference
    • Interfaces
    • Types
      • Buffer types
      • Math types
      • Miscelaneous types
      • Ray-tracing
      • Sampler types
      • Scalar types
      • Stage IO types
      • Texture types
      • Array
      • Atomic
      • ConstantBuffer
      • DifferentialPair
      • DifferentialPtrPair
      • Optional
      • ParameterBlock
      • Ptr
      • String
        • getLength
        • init
        • length
      • Tuple
      • _AttributeTargets
    • Attributes
    • Global Declarations

struct String

Description

Represents a string. This type can only be used on the CPU target.

Properties

length

Returns the length of the string.

Methods