Class EncodeBC6H
Inheritance
System.Object
EncodeBC6H
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 |