Class ShadercIncludeResult

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ShadercIncludeResult extends Struct<ShadercIncludeResult> implements NativeResource
An include result.

Layout


 struct shaderc_include_result {
     char const * source_name();
     size_t source_name_length;
     char const * content();
     size_t content_length;
     void * user_data();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SOURCE_NAME

      public static final int SOURCE_NAME
      The struct member offsets.
    • SOURCE_NAME_LENGTH

      public static final int SOURCE_NAME_LENGTH
      The struct member offsets.
    • CONTENT

      public static final int CONTENT
      The struct member offsets.
    • CONTENT_LENGTH

      public static final int CONTENT_LENGTH
      The struct member offsets.
    • USER_DATA

      public static final int USER_DATA
      The struct member offsets.
  • Constructor Details

    • ShadercIncludeResult

      public ShadercIncludeResult(ByteBuffer container)
      Creates a ShadercIncludeResult instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details