Class NodeShaderScript


  • public class NodeShaderScript
    extends CFacade
    Generated facet for DNA struct type 'NodeShaderScript'.

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct NodeShaderScript.

        It is required when allocating a new block to store data for NodeShaderScript.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__mode

        public static final long[] __DNA__FIELD__mode
        Field descriptor (offset) for struct member 'mode'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         NodeShaderScript nodeshaderscript = ...;
         CPointer<Object> p = nodeshaderscript.__dna__addressof(NodeShaderScript.__DNA__FIELD__mode);
         CPointer<Integer> p_mode = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'mode'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         NodeShaderScript nodeshaderscript = ...;
         CPointer<Object> p = nodeshaderscript.__dna__addressof(NodeShaderScript.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__filepath

        public static final long[] __DNA__FIELD__filepath
        Field descriptor (offset) for struct member 'filepath'.

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         NodeShaderScript nodeshaderscript = ...;
         CPointer<Object> p = nodeshaderscript.__dna__addressof(NodeShaderScript.__DNA__FIELD__filepath);
         CPointer<CArrayFacade<Byte>> p_filepath = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'filepath'
        • Signature: 'char[1024]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__bytecode_hash

        public static final long[] __DNA__FIELD__bytecode_hash
        Field descriptor (offset) for struct member 'bytecode_hash'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         NodeShaderScript nodeshaderscript = ...;
         CPointer<Object> p = nodeshaderscript.__dna__addressof(NodeShaderScript.__DNA__FIELD__bytecode_hash);
         CPointer<CArrayFacade<Byte>> p_bytecode_hash = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'bytecode_hash'
        • Signature: 'char[64]'
        • Actual Size (32bit/64bit): 64/64
      • __DNA__FIELD__bytecode

        public static final long[] __DNA__FIELD__bytecode
        Field descriptor (offset) for struct member 'bytecode'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         NodeShaderScript nodeshaderscript = ...;
         CPointer<Object> p = nodeshaderscript.__dna__addressof(NodeShaderScript.__DNA__FIELD__bytecode);
         CPointer<CPointer<Byte>> p_bytecode = p.cast(new Class[]{CPointer.class, Byte.class});
         

        Metadata

        • Field: 'bytecode'
        • Signature: 'char*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • NodeShaderScript

        public NodeShaderScript​(long __address,
                                Block __block,
                                BlockTable __blockTable)
    • Method Detail

      • getMode

        public int getMode()
                    throws java.io.IOException
        Get method for struct member 'mode'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mode
      • setMode

        public void setMode​(int mode)
                     throws java.io.IOException
        Set method for struct member 'mode'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mode
      • getFlag

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(int flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getFilepath

        public CArrayFacade<java.lang.Byte> getFilepath()
                                                 throws java.io.IOException
        Get method for struct member 'filepath'.

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filepath
      • setFilepath

        public void setFilepath​(CArrayFacade<java.lang.Byte> filepath)
                         throws java.io.IOException
        Set method for struct member 'filepath'.

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filepath
      • getBytecode_hash

        public CArrayFacade<java.lang.Byte> getBytecode_hash()
                                                      throws java.io.IOException
        Get method for struct member 'bytecode_hash'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bytecode_hash
      • setBytecode_hash

        public void setBytecode_hash​(CArrayFacade<java.lang.Byte> bytecode_hash)
                              throws java.io.IOException
        Set method for struct member 'bytecode_hash'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bytecode_hash
      • getBytecode

        public CPointer<java.lang.Byte> getBytecode()
                                             throws java.io.IOException
        Get method for struct member 'bytecode'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bytecode
      • setBytecode

        public void setBytecode​(CPointer<java.lang.Byte> bytecode)
                         throws java.io.IOException
        Set method for struct member 'bytecode'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bytecode