Class LightCache


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __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:

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__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__version

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

        Field Documentation

        Blender Source Code

        Version number to know if the cache data is compatible with this version of blender.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__version);
         CPointer<Integer> p_version = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'version'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__type

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

        Field Documentation

        Blender Source Code

        Type of data this cache contains.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__type);
         CPointer<Integer> p_type = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'type'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__cube_len

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

        Field Documentation

        Blender Source Code

        only a single cache for now Number of probes to use for rendering.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_len);
         CPointer<Integer> p_cube_len = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'cube_len'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__grid_len

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

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__grid_len);
         CPointer<Integer> p_grid_len = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'grid_len'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__mips_len

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

        Field Documentation

        Blender Source Code

        Number of mipmap level to use.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__mips_len);
         CPointer<Integer> p_mips_len = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'mips_len'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__vis_res

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

        Field Documentation

        Blender Source Code

        Size of a visibility/reflection sample.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__vis_res);
         CPointer<Integer> p_vis_res = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'vis_res'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__ref_res

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

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__ref_res);
         CPointer<Integer> p_ref_res = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'ref_res'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD___pad

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

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD___pad);
         CPointer<CArrayFacade<CArrayFacade<Byte>>> p__pad = p.cast(new Class[]{CArrayFacade.class, CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[4][2]'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__grid_tx

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

        Field Documentation

        Blender Source Code

        In the future, we could create a bigger texture containing multiple caches (for animation) and interpolate between the caches overtime to another texture.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__grid_tx);
         CPointer<LightCacheTexture> p_grid_tx = p.cast(new Class[]{LightCacheTexture.class});
         

        Metadata

        • Field: 'grid_tx'
        • Signature: 'LightCacheTexture'
        • Actual Size (32bit/64bit): 24/32
      • __DNA__FIELD__cube_tx

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

        Field Documentation

        Blender Source Code

        Contains data for mipmap level 0.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_tx);
         CPointer<LightCacheTexture> p_cube_tx = p.cast(new Class[]{LightCacheTexture.class});
         

        Metadata

        • Field: 'cube_tx'
        • Signature: 'LightCacheTexture'
        • Actual Size (32bit/64bit): 24/32
      • __DNA__FIELD__cube_mips

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

        Field Documentation

        Blender Source Code

        Does not contains valid GPUTexture, only data.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_mips);
         CPointer<CPointer<LightCacheTexture>> p_cube_mips = p.cast(new Class[]{CPointer.class, LightCacheTexture.class});
         

        Metadata

        • Field: 'cube_mips'
        • Signature: 'LightCacheTexture*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__cube_data

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

        Field Documentation

        Blender Source Code

        All lightprobes data contained in the cache.

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__cube_data);
         CPointer<CPointer<LightProbeCache>> p_cube_data = p.cast(new Class[]{CPointer.class, LightProbeCache.class});
         

        Metadata

        • Field: 'cube_data'
        • Signature: 'LightProbeCache*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__grid_data

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

        Pointer Arithmetics

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

         LightCache lightcache = ...;
         CPointer<Object> p = lightcache.__dna__addressof(LightCache.__DNA__FIELD__grid_data);
         CPointer<CPointer<LightGridCache>> p_grid_data = p.cast(new Class[]{CPointer.class, LightGridCache.class});
         

        Metadata

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

      • LightCache

        public LightCache​(long __address,
                          Block __block,
                          BlockTable __blockTable)
      • LightCache

        protected LightCache​(LightCache that)
    • Method Detail

      • 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
      • getVersion

        public int getVersion()
                       throws java.io.IOException
        Get method for struct member 'version'.

        Field Documentation

        Blender Source Code

        Version number to know if the cache data is compatible with this version of blender.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__version
      • setVersion

        public void setVersion​(int version)
                        throws java.io.IOException
        Set method for struct member 'version'.

        Field Documentation

        Blender Source Code

        Version number to know if the cache data is compatible with this version of blender.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__version
      • getType

        public int getType()
                    throws java.io.IOException
        Get method for struct member 'type'.

        Field Documentation

        Blender Source Code

        Type of data this cache contains.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

        public void setType​(int type)
                     throws java.io.IOException
        Set method for struct member 'type'.

        Field Documentation

        Blender Source Code

        Type of data this cache contains.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • getCube_len

        public int getCube_len()
                        throws java.io.IOException
        Get method for struct member 'cube_len'.

        Field Documentation

        Blender Source Code

        only a single cache for now Number of probes to use for rendering.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_len
      • setCube_len

        public void setCube_len​(int cube_len)
                         throws java.io.IOException
        Set method for struct member 'cube_len'.

        Field Documentation

        Blender Source Code

        only a single cache for now Number of probes to use for rendering.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_len
      • getGrid_len

        public int getGrid_len()
                        throws java.io.IOException
        Get method for struct member 'grid_len'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__grid_len
      • setGrid_len

        public void setGrid_len​(int grid_len)
                         throws java.io.IOException
        Set method for struct member 'grid_len'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__grid_len
      • getMips_len

        public int getMips_len()
                        throws java.io.IOException
        Get method for struct member 'mips_len'.

        Field Documentation

        Blender Source Code

        Number of mipmap level to use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mips_len
      • setMips_len

        public void setMips_len​(int mips_len)
                         throws java.io.IOException
        Set method for struct member 'mips_len'.

        Field Documentation

        Blender Source Code

        Number of mipmap level to use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mips_len
      • getVis_res

        public int getVis_res()
                       throws java.io.IOException
        Get method for struct member 'vis_res'.

        Field Documentation

        Blender Source Code

        Size of a visibility/reflection sample.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vis_res
      • setVis_res

        public void setVis_res​(int vis_res)
                        throws java.io.IOException
        Set method for struct member 'vis_res'.

        Field Documentation

        Blender Source Code

        Size of a visibility/reflection sample.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vis_res
      • getRef_res

        public int getRef_res()
                       throws java.io.IOException
        Get method for struct member 'ref_res'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ref_res
      • setRef_res

        public void setRef_res​(int ref_res)
                        throws java.io.IOException
        Set method for struct member 'ref_res'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ref_res
      • getGrid_tx

        public LightCacheTexture getGrid_tx()
                                     throws java.io.IOException
        Get method for struct member 'grid_tx'.

        Field Documentation

        Blender Source Code

        In the future, we could create a bigger texture containing multiple caches (for animation) and interpolate between the caches overtime to another texture.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__grid_tx
      • setGrid_tx

        public void setGrid_tx​(LightCacheTexture grid_tx)
                        throws java.io.IOException
        Set method for struct member 'grid_tx'.

        Field Documentation

        Blender Source Code

        In the future, we could create a bigger texture containing multiple caches (for animation) and interpolate between the caches overtime to another texture.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__grid_tx
      • getCube_tx

        public LightCacheTexture getCube_tx()
                                     throws java.io.IOException
        Get method for struct member 'cube_tx'.

        Field Documentation

        Blender Source Code

        Contains data for mipmap level 0.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_tx
      • setCube_tx

        public void setCube_tx​(LightCacheTexture cube_tx)
                        throws java.io.IOException
        Set method for struct member 'cube_tx'.

        Field Documentation

        Blender Source Code

        Contains data for mipmap level 0.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_tx
      • getCube_mips

        public CPointer<LightCacheTexture> getCube_mips()
                                                 throws java.io.IOException
        Get method for struct member 'cube_mips'.

        Field Documentation

        Blender Source Code

        Does not contains valid GPUTexture, only data.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_mips
      • setCube_mips

        public void setCube_mips​(CPointer<LightCacheTexture> cube_mips)
                          throws java.io.IOException
        Set method for struct member 'cube_mips'.

        Field Documentation

        Blender Source Code

        Does not contains valid GPUTexture, only data.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_mips
      • getCube_data

        public CPointer<LightProbeCache> getCube_data()
                                               throws java.io.IOException
        Get method for struct member 'cube_data'.

        Field Documentation

        Blender Source Code

        All lightprobes data contained in the cache.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_data
      • setCube_data

        public void setCube_data​(CPointer<LightProbeCache> cube_data)
                          throws java.io.IOException
        Set method for struct member 'cube_data'.

        Field Documentation

        Blender Source Code

        All lightprobes data contained in the cache.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cube_data
      • __io__addressof

        public CPointer<LightCache> __io__addressof()
        Instantiates a pointer on this instance.