RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Class CubeTexture

    CubeTexture

    Hierarchy (View Summary)

    Index

    Other

    • CubeTexture 생성자

      Parameters

      • redGPUContext: RedGPUContext

        RedGPUContext 인스턴스

      • srcList: SrcInfo

        큐브 텍스처 소스 정보

      • useMipMap: boolean = true

        밉맵 사용 여부(기본값: true)

      • OptionalonLoad: (cubeTextureInstance?: CubeTexture) => void

        로드 완료 콜백

      • OptionalonError: (error: Error) => void

        에러 콜백

      • Optionalformat: GPUTextureFormat

        텍스처 포맷(옵션)

      Returns CubeTexture

    defaultViewDescriptor: GPUTextureViewDescriptor = ...

    기본 뷰 디스크립터

    • get gpuDevice(): GPUDevice

      Retrieves the GPU device associated with the current instance.

      Returns GPUDevice

      The GPU device.

    • get viewDescriptor(): {
          arrayLayerCount?: number;
          aspect?: GPUTextureAspect;
          baseArrayLayer?: number;
          baseMipLevel?: number;
          dimension?: GPUTextureViewDimension;
          format?: GPUTextureFormat;
          label?: string;
          mipLevelCount: number;
          usage?: number;
      }

      뷰 디스크립터 반환

      Returns {
          arrayLayerCount?: number;
          aspect?: GPUTextureAspect;
          baseArrayLayer?: number;
          baseMipLevel?: number;
          dimension?: GPUTextureViewDimension;
          format?: GPUTextureFormat;
          label?: string;
          mipLevelCount: number;
          usage?: number;
      }

      • OptionalarrayLayerCount?: number

        How many array layers, starting with GPUTextureViewDescriptor#baseArrayLayer, are accessible to the texture view.

      • Optionalaspect?: GPUTextureAspect

        Which GPUTextureAspect | aspect(s) of the texture are accessible to the texture view.

      • OptionalbaseArrayLayer?: number

        The index of the first array layer accessible to the texture view.

      • OptionalbaseMipLevel?: number

        The first (most detailed) mipmap level accessible to the texture view.

      • Optionaldimension?: GPUTextureViewDimension

        The dimension to view the texture as.

      • Optionalformat?: GPUTextureFormat

        The format of the texture view. Must be either the GPUTextureDescriptor#format of the texture or one of the GPUTextureDescriptor#viewFormats specified during its creation.

      • Optionallabel?: string

        The initial value of GPUObjectBase#label | GPUObjectBase.label.

      • mipLevelCount: number
      • Optionalusage?: number

        The allowed GPUTextureUsage | usage(s) for the texture view. Must be a subset of the GPUTexture#usage flags of the texture. If 0, defaults to the full set of GPUTexture#usage flags of the texture. Note: If the view's GPUTextureViewDescriptor#format doesn't support all of the texture's GPUTextureDescriptor#usages, the default will fail, and the view's GPUTextureViewDescriptor#usage must be specified explicitly.

    Texture

    • GPUTexture를 직접 설정합니다.

      Parameters

      • gpuTexture: GPUTexture

        GPUTexture 객체

      • OptionalcacheKey: string

        캐시 키(옵션)

      • useMipmap: boolean = true

        밉맵 사용 여부(기본값: true)

      Returns void