CubeTexture 생성자
RedGPUContext 인스턴스
큐브 텍스처 소스 정보
밉맵 사용 여부(기본값: true)
Optional
onLoad: (cubeTextureInstance?: CubeTexture) => void로드 완료 콜백
Optional
onError: (error: Error) => void에러 콜백
Optional
format: GPUTextureFormat텍스처 포맷(옵션)
Static
default기본 뷰 디스크립터
Retrieves the GPU device associated with the current instance.
The GPU device.
GPUTexture 객체 반환
밉맵 레벨 개수 반환
텍스처 소스 경로 리스트 반환
텍스처 소스 경로 리스트 설정 및 로드
밉맵 사용 여부 반환
밉맵 사용 여부 설정 및 텍스처 재생성
Retrieves the UUID of the object.
The UUID of the object.
비디오 메모리 사용량(byte) 반환
뷰 디스크립터 반환
Optional
arrayLayerCount?: numberHow many array layers, starting with GPUTextureViewDescriptor#baseArrayLayer, are accessible to the texture view.
Optional
aspect?: GPUTextureAspectWhich GPUTextureAspect | aspect(s) of the texture are accessible to the texture view.
Optional
baseArrayLayer?: numberThe index of the first array layer accessible to the texture view.
Optional
baseMipLevel?: numberThe first (most detailed) mipmap level accessible to the texture view.
Optional
dimension?: GPUTextureViewDimensionThe dimension to view the texture as.
Optional
format?: GPUTextureFormatThe format of the texture view. Must be either the GPUTextureDescriptor#format of the texture or one of the GPUTextureDescriptor#viewFormats specified during its creation.
Optional
label?: stringThe initial value of GPUObjectBase#label | GPUObjectBase.label.
Optional
usage?: numberThe 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.
Adds a listener function to the dirty pipeline listeners array. This function will be called when the pipeline becomes dirty.
The listener function to be added.
Fires the dirty listeners list.
Optional
resetList: boolean = falseIndicates whether to reset the dirty listeners list after firing.
Removes a dirty pipeline listener from the list of listeners.
The listener function to be removed.
텍스처와 리소스 해제
CubeTexture