MCPcopy Create free account
hub / github.com/Tencent/tgfx / textureCount

Method textureCount

src/gpu/resources/YUVTextureView.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107size_t YUVTextureView::textureCount() const {
108 switch (_yuvFormat) {
109 case YUVFormat::I420:
110 return YUVData::I420_PLANE_COUNT;
111 case YUVFormat::NV12:
112 return YUVData::NV12_PLANE_COUNT;
113 default:
114 DEBUG_ASSERT(false);
115 return 0;
116 }
117}
118
119GPUTexture* YUVTextureView::getTextureAt(size_t index) const {
120 DEBUG_ASSERT(index < textureCount());

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected