mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
45 lines
1.5 KiB
C++
45 lines
1.5 KiB
C++
#include "RenderAdditiveLightQueue.h"
|
|
#include "RenderView.h"
|
|
|
|
namespace cc {
|
|
namespace pipeline {
|
|
RenderAdditiveLightQueue::RenderAdditiveLightQueue(RenderPipeline *) {
|
|
}
|
|
|
|
void RenderAdditiveLightQueue::add(const RenderObject *renderObj, uint subModelIdx, PassView *pass, uint beginIdx, uint endIdx) {
|
|
}
|
|
|
|
void RenderAdditiveLightQueue::clear(const vector<Light *> &validLights,
|
|
const vector<gfx::Buffer *> &lightBuffers,
|
|
const vector<uint> &lightIndices) {
|
|
_validLights = validLights;
|
|
_lightBuffers = lightBuffers;
|
|
_lightIndices = lightIndices;
|
|
const auto validLightCount = validLights.size();
|
|
_sortedSubModelsArray.resize(validLightCount);
|
|
_sortedPSOCIArray.resize(validLightCount);
|
|
for (size_t i = 0; i < validLightCount; ++i) {
|
|
if (_sortedPSOCIArray[i].size()) {
|
|
_sortedSubModelsArray[i].clear();
|
|
_sortedPSOCIArray[i].clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
void RenderAdditiveLightQueue::recordCommandBuffer(gfx::Device *device, gfx::RenderPass *renderPass, gfx::CommandBuffer *cmdBuff) {
|
|
}
|
|
|
|
void RenderAdditiveLightQueue::attach(RenderObject *renderObj,
|
|
uint subModelIdx,
|
|
gfx::Buffer *lightBuffer,
|
|
uint lightIdx,
|
|
PassView *pass,
|
|
DefineMap *patches) {
|
|
}
|
|
|
|
void RenderAdditiveLightQueue::gatherLightPasses(RenderView *) {
|
|
}
|
|
|
|
} // namespace pipeline
|
|
} // namespace cc
|