| 337 | } |
| 338 | |
| 339 | void CubemapView::SetArrayViewports(int resolution, int firstArraySlice) |
| 340 | { |
| 341 | m_FirstArraySlice = firstArraySlice; |
| 342 | |
| 343 | for (int face = 0; face < 6; face++) |
| 344 | { |
| 345 | m_FaceViews[face].SetViewport(nvrhi::Viewport(float(resolution), float(resolution))); |
| 346 | m_FaceViews[face].SetArraySlice(face + firstArraySlice); |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | void CubemapView::UpdateCache() |
| 351 | { |
nothing calls this directly
no test coverage detected