mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
b5bb1487ca
# Conflicts: # cocos/renderer/pipeline/BatchedBuffer.cpp # cocos/renderer/pipeline/BatchedBuffer.h # cocos/renderer/pipeline/InstancedBuffer.cpp # cocos/renderer/pipeline/InstancedBuffer.h # cocos/renderer/pipeline/PipelineStateManager.cpp # cocos/renderer/pipeline/PipelineStateManager.h # cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp # cocos/renderer/pipeline/RenderAdditiveLightQueue.h # cocos/renderer/pipeline/RenderInstancedQueue.cpp # cocos/renderer/pipeline/RenderQueue.cpp # cocos/renderer/pipeline/forward/ForwardStage.cpp # cocos/renderer/pipeline/helper/SharedMemory.h # cocos/renderer/pipeline/ui/UIFlow.cpp # cocos/renderer/pipeline/ui/UIFlow.h # cocos/renderer/pipeline/ui/UIStage.cpp # cocos/renderer/pipeline/ui/UIStage.h # cocos/scripting/dop/BufferPool.h
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
#include "RenderAdditiveLightQueue.h"
|
|
#include "helper/DefineMap.h"
|
|
|
|
namespace cc {
|
|
namespace pipeline {
|
|
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,
|
|
vector<MacroPatch> patches) {
|
|
|
|
}
|
|
|
|
} // namespace pipeline
|
|
} // namespace cc
|