{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method DownSample | High Definition RP | 10.5.0
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Method DownSample

    DownSample(in CustomPassContext, RTHandle, RTHandle, int, int)

    Convert the source buffer to an half resolution buffer and output it to the destination buffer.

    선언
    public static void DownSample(in CustomPassContext ctx, RTHandle source, RTHandle destination, int sourceMip = 0, int destMip = 0)
    파라미터
    타입 이름 설명
    CustomPassContext ctx

    Custom Pass Context.

    RTHandle source

    Source to use for the downsample

    RTHandle destination

    Destination buffer of the downsample

    int sourceMip

    Source mip level to sample from.

    int destMip

    Destination mip level to write to.

    DownSample(in CustomPassContext, RTHandle, RTHandle, Vector4, Vector4, int, int)

    Convert the source buffer to an half resolution buffer and output it to the destination buffer.

    선언
    public static void DownSample(in CustomPassContext ctx, RTHandle source, RTHandle destination, Vector4 sourceScaleBias, Vector4 destScaleBias, int sourceMip = 0, int destMip = 0)
    파라미터
    타입 이름 설명
    CustomPassContext ctx

    Custom Pass Context.

    RTHandle source

    Source to use for the downsample

    RTHandle destination

    Destination buffer of the downsample

    Vector4 sourceScaleBias

    Scale and bias to apply when sampling the source buffer

    Vector4 destScaleBias

    Scale and bias to apply when writing into the destination buffer. It's scale is relative to the destination buffer, so if you want an half res downsampling into a fullres buffer you need to specify a scale of 0.5;0,5. If your buffer is already half res Then 1;1 scale works.

    int sourceMip

    Source mip level to sample from.

    int destMip

    Destination mip level to write to.

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)