Class EncodeBC6H | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class EncodeBC6H

    Inheritance
    System.Object
    EncodeBC6H
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: UnityEngine.Experimental.Rendering
    Syntax
    public class EncodeBC6H

    Constructors

    EncodeBC6H(ComputeShader)

    Declaration
    public EncodeBC6H(ComputeShader shader)
    Parameters
    Type Name Description
    ComputeShader shader

    Fields

    DefaultInstance

    Declaration
    public static EncodeBC6H DefaultInstance
    Field Value
    Type Description
    EncodeBC6H

    Methods

    EncodeFastCubemap(CommandBuffer, RenderTargetIdentifier, Int32, RenderTargetIdentifier, Int32, Int32, Int32)

    Encode a Cubemap in BC6H.

    It will encode all faces and selected mips of the Cubemap.

    It uses only mode 11 of BC6H.

    Declaration
    public void EncodeFastCubemap(CommandBuffer cmb, RenderTargetIdentifier source, int sourceSize, RenderTargetIdentifier target, int fromMip, int toMip, int targetArrayIndex = 0)
    Parameters
    Type Name Description
    CommandBuffer cmb

    Command buffer for execution

    RenderTargetIdentifier source

    The source Cubemap

    System.Int32 sourceSize

    The size of the source Cubemap

    RenderTargetIdentifier target

    The compressed texture. It must be a BC6H Cubemap or Cubemap array with the same size as the source Cubemap

    System.Int32 fromMip

    Starting mip to encode

    System.Int32 toMip

    Last mip to encode

    System.Int32 targetArrayIndex

    The index of the cubemap to store the compressed texture.

    Only relevant when target is a CubemapArray

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023