Method EncodeFastCubemap
EncodeFastCubemap(CommandBuffer, RenderTargetIdentifier, int, RenderTargetIdentifier, int, int, int)
Encode a Cubemap in BC6H.
It will encode all faces and selected mips of the Cubemap.
It uses only mode 11 of BC6H.
선언
public void EncodeFastCubemap(CommandBuffer cmb, RenderTargetIdentifier source, int sourceSize, RenderTargetIdentifier target, int fromMip, int toMip, int targetArrayIndex = 0)
파라미터
타입 | 이름 | 설명 |
---|---|---|
CommandBuffer | cmb | Command buffer for execution |
RenderTargetIdentifier | source | The source Cubemap |
int | 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 |
int | fromMip | Starting mip to encode |
int | toMip | Last mip to encode |
int | targetArrayIndex | The index of the cubemap to store the compressed texture.
|