mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
vk: more polish work (#2606)
* vk: be more specific on texture usage flags * vk: polish buffer & texture update
This commit is contained in:
@@ -86,6 +86,19 @@ void CCVKBuffer::resize(uint size) {
|
||||
}
|
||||
|
||||
void CCVKBuffer::update(void *buffer, uint offset, uint size) {
|
||||
#if COCOS2D_DEBUG > 0
|
||||
if (_usage & GFXBufferUsageBit::INDIRECT) {
|
||||
GFXDrawInfo *drawInfo = static_cast<GFXDrawInfo *>(buffer);
|
||||
const size_t drawInfoCount = size / sizeof(GFXDrawInfo);
|
||||
const bool isIndexed = drawInfoCount > 0 && drawInfo->indexCount > 0;
|
||||
for (size_t i = 1u; i < drawInfoCount; i++) {
|
||||
if ((++drawInfo)->indexCount > 0 != isIndexed) {
|
||||
CC_LOG_WARNING("Inconsistent indirect draw infos on using index buffer");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (_buffer) {
|
||||
memcpy(_buffer + offset, buffer, size);
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ void CCVKCmdFuncGetDeviceQueue(CCVKDevice *device, CCVKGPUQueue *gpuQueue) {
|
||||
void CCVKCmdFuncCreateCommandPool(CCVKDevice *device, CCVKGPUCommandPool *gpuCommandPool) {
|
||||
VkCommandPoolCreateInfo createInfo{VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO};
|
||||
createInfo.queueFamilyIndex = ((CCVKQueue *)device->getQueue())->gpuQueue()->queueFamilyIndex;
|
||||
createInfo.flags = VK_COMMAND_POOL_CREATE_TRANSIENT_BIT | VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
|
||||
createInfo.flags = VK_COMMAND_POOL_CREATE_TRANSIENT_BIT;
|
||||
|
||||
VK_CHECK(vkCreateCommandPool(device->gpuDevice()->vkDevice, &createInfo, nullptr, &gpuCommandPool->vkCommandPool));
|
||||
}
|
||||
@@ -265,61 +265,57 @@ void CCVKCmdFuncResizeBuffer(CCVKDevice *device, CCVKGPUBuffer *gpuBuffer) {
|
||||
}
|
||||
|
||||
void CCVKCmdFuncUpdateBuffer(CCVKDevice *device, CCVKGPUBuffer *gpuBuffer, void *buffer, uint offset, uint size) {
|
||||
if (gpuBuffer->mappedData) {
|
||||
if (gpuBuffer->usage & GFXBufferUsageBit::INDIRECT) {
|
||||
size_t drawInfoCount = size / gpuBuffer->stride;
|
||||
GFXDrawInfo *drawInfo = static_cast<GFXDrawInfo *>(buffer);
|
||||
if (drawInfoCount > 0) {
|
||||
if (drawInfo->indexCount) {
|
||||
vector<VkDrawIndexedIndirectCommand> cmds(drawInfoCount);
|
||||
for (size_t i = 0; i < drawInfoCount; i++) {
|
||||
#if COCOS2D_DEBUG > 0
|
||||
if (drawInfo->indexCount == 0) {
|
||||
CC_LOG_ERROR("CCVKCmdFuncUpdateBuffer: all indirect draw should use VkDrawIndexedIndirectCommand, but one of them is not.");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
cmds[i].indexCount = drawInfo->indexCount;
|
||||
cmds[i].instanceCount = drawInfo->instanceCount == 0 ? 1 : drawInfo->instanceCount;
|
||||
cmds[i].firstIndex = drawInfo->firstIndex;
|
||||
cmds[i].vertexOffset = drawInfo->vertexOffset;
|
||||
cmds[i].firstInstance = drawInfo->firstInstance;
|
||||
drawInfo++;
|
||||
}
|
||||
memcpy(gpuBuffer->mappedData + offset, cmds.data(), drawInfoCount * sizeof(VkDrawIndexedIndirectCommand));
|
||||
gpuBuffer->isDrawIndirectByIndex = true;
|
||||
} else {
|
||||
vector<VkDrawIndirectCommand> cmds(drawInfoCount);
|
||||
for (size_t i = 0; i < drawInfoCount; i++) {
|
||||
#if COCOS2D_DEBUG > 0
|
||||
if (drawInfo->indexCount > 0) {
|
||||
CC_LOG_ERROR("CCVKCmdFuncUpdateBuffer: all indirect draw should use VkDrawIndirectCommand, but one of them is not.");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
cmds[i].vertexCount = drawInfo->vertexCount;
|
||||
cmds[i].instanceCount = drawInfo->indexCount;
|
||||
cmds[i].firstVertex = drawInfo->firstVertex;
|
||||
cmds[i].firstInstance = drawInfo->firstInstance;
|
||||
drawInfo++;
|
||||
}
|
||||
memcpy(gpuBuffer->mappedData + offset, cmds.data(), drawInfoCount * sizeof(VkDrawIndirectCommand));
|
||||
gpuBuffer->isDrawIndirectByIndex = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
memcpy(gpuBuffer->mappedData + offset, buffer, size);
|
||||
}
|
||||
} else if (gpuBuffer->memUsage == GFXMemoryUsage::DEVICE) {
|
||||
const CCVKGPUBuffer *stagingBuffer = device->stagingBuffer()->gpuBuffer();
|
||||
if (stagingBuffer->size < size) device->stagingBuffer()->resize(nextPowerOf2(size));
|
||||
const void *dataToUpload = nullptr;
|
||||
size_t sizeToUpload = 0u;
|
||||
|
||||
memcpy(stagingBuffer->mappedData, buffer, size);
|
||||
if (gpuBuffer->usage & GFXBufferUsageBit::INDIRECT) {
|
||||
size_t drawInfoCount = size / sizeof(GFXDrawInfo);
|
||||
GFXDrawInfo *drawInfo = static_cast<GFXDrawInfo *>(buffer);
|
||||
if (drawInfoCount > 0) {
|
||||
if (drawInfo->indexCount) {
|
||||
vector<VkDrawIndexedIndirectCommand> cmds(drawInfoCount);
|
||||
for (size_t i = 0; i < drawInfoCount; i++) {
|
||||
cmds[i].indexCount = drawInfo->indexCount;
|
||||
cmds[i].instanceCount = drawInfo->instanceCount == 0 ? 1 : drawInfo->instanceCount;
|
||||
cmds[i].firstIndex = drawInfo->firstIndex;
|
||||
cmds[i].vertexOffset = drawInfo->vertexOffset;
|
||||
cmds[i].firstInstance = drawInfo->firstInstance;
|
||||
drawInfo++;
|
||||
}
|
||||
dataToUpload = cmds.data();
|
||||
sizeToUpload = drawInfoCount * sizeof(VkDrawIndexedIndirectCommand);
|
||||
gpuBuffer->isDrawIndirectByIndex = true;
|
||||
} else {
|
||||
vector<VkDrawIndirectCommand> cmds(drawInfoCount);
|
||||
for (size_t i = 0; i < drawInfoCount; i++) {
|
||||
cmds[i].vertexCount = drawInfo->vertexCount;
|
||||
cmds[i].instanceCount = drawInfo->indexCount;
|
||||
cmds[i].firstVertex = drawInfo->firstVertex;
|
||||
cmds[i].firstInstance = drawInfo->firstInstance;
|
||||
drawInfo++;
|
||||
}
|
||||
dataToUpload = cmds.data();
|
||||
sizeToUpload = drawInfoCount * sizeof(VkDrawIndirectCommand);
|
||||
gpuBuffer->isDrawIndirectByIndex = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
dataToUpload = buffer;
|
||||
sizeToUpload = size;
|
||||
}
|
||||
|
||||
if (gpuBuffer->mappedData) {
|
||||
memcpy(gpuBuffer->mappedData + offset, dataToUpload, sizeToUpload);
|
||||
} else {
|
||||
const CCVKGPUBuffer *stagingBuffer = device->stagingBuffer()->gpuBuffer();
|
||||
if (stagingBuffer->size < sizeToUpload) device->stagingBuffer()->resize(nextPowerOf2(sizeToUpload));
|
||||
|
||||
memcpy(stagingBuffer->mappedData, dataToUpload, sizeToUpload);
|
||||
|
||||
CCVKGPUCommandBuffer cmdBuff;
|
||||
beginOneTimeCommands(device, &cmdBuff);
|
||||
|
||||
VkBufferCopy region{0, gpuBuffer->startOffset + offset, size};
|
||||
VkBufferCopy region{0, gpuBuffer->startOffset + offset, sizeToUpload};
|
||||
vkCmdCopyBuffer(cmdBuff.vkCommandBuffer, stagingBuffer->vkBuffer, gpuBuffer->vkBuffer, 1, ®ion);
|
||||
|
||||
endOneTimeCommands(device, &cmdBuff);
|
||||
@@ -331,15 +327,15 @@ void CCVKCmdFuncCreateTexture(CCVKDevice *device, CCVKGPUTexture *gpuTexture) {
|
||||
|
||||
VkFormat format = MapVkFormat(gpuTexture->format);
|
||||
VkFormatFeatureFlags features = MapVkFormatFeatureFlags(gpuTexture->usage);
|
||||
VkImageTiling tiling = VK_IMAGE_TILING_OPTIMAL;
|
||||
VkImageUsageFlags usageFlags = MapVkImageUsageFlagBits(gpuTexture->usage) | VK_IMAGE_USAGE_TRANSFER_DST_BIT;
|
||||
VkFormatProperties formatProperties;
|
||||
vkGetPhysicalDeviceFormatProperties(device->gpuContext()->physicalDevice, format, &formatProperties);
|
||||
|
||||
if (!(formatProperties.optimalTilingFeatures & features)) {
|
||||
CC_LOG_ERROR("CCVKCmdFuncCreateTexture: %s does not support optimal tiling with specified features", GFX_FORMAT_INFOS[(uint)gpuTexture->format].name.c_str());
|
||||
const char *formatName = GFX_FORMAT_INFOS[(uint)gpuTexture->format].name.c_str();
|
||||
CC_LOG_ERROR("CCVKCmdFuncCreateTexture: The specified usage for %s is not supported on this platform", formatName);
|
||||
return;
|
||||
}
|
||||
|
||||
VkImageUsageFlags usageFlags = MapVkImageUsageFlagBits(gpuTexture->usage);
|
||||
if (gpuTexture->flags & GFXTextureFlags::GEN_MIPMAP) {
|
||||
usageFlags |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
|
||||
}
|
||||
@@ -352,7 +348,7 @@ void CCVKCmdFuncCreateTexture(CCVKDevice *device, CCVKGPUTexture *gpuTexture) {
|
||||
createInfo.mipLevels = gpuTexture->mipLevel;
|
||||
createInfo.arrayLayers = gpuTexture->arrayLayer;
|
||||
createInfo.samples = MapVkSampleCount(gpuTexture->samples);
|
||||
createInfo.tiling = tiling;
|
||||
createInfo.tiling = VK_IMAGE_TILING_OPTIMAL;
|
||||
createInfo.usage = usageFlags;
|
||||
createInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
|
||||
@@ -932,13 +928,11 @@ void CCVKCmdFuncCopyBuffersToTexture(CCVKDevice *device, uint8_t *const *buffers
|
||||
vkCmdCopyBufferToImage(cmdBuff.vkCommandBuffer, stagingBuffer->vkBuffer, gpuTexture->vkImage,
|
||||
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, stagingRegions.size(), stagingRegions.data());
|
||||
|
||||
bool layoutReady = false;
|
||||
if (gpuTexture->flags & GFXTextureFlags::GEN_MIPMAP) {
|
||||
VkFormatProperties formatProperties;
|
||||
vkGetPhysicalDeviceFormatProperties(device->gpuContext()->physicalDevice, MapVkFormat(gpuTexture->format), &formatProperties);
|
||||
VkFormatFeatureFlags mipmapFeatures = 0;
|
||||
mipmapFeatures |= VK_FORMAT_FEATURE_BLIT_SRC_BIT;
|
||||
mipmapFeatures |= VK_FORMAT_FEATURE_BLIT_DST_BIT;
|
||||
mipmapFeatures |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
||||
VkFormatFeatureFlags mipmapFeatures = VK_FORMAT_FEATURE_BLIT_SRC_BIT | VK_FORMAT_FEATURE_BLIT_DST_BIT | VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
||||
|
||||
if (formatProperties.optimalTilingFeatures & mipmapFeatures) {
|
||||
VkImageSubresourceRange mipSubRange{};
|
||||
@@ -1005,10 +999,14 @@ void CCVKCmdFuncCopyBuffersToTexture(CCVKDevice *device, uint8_t *const *buffers
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
gpuTexture->targetStage,
|
||||
mipSubRange);
|
||||
layoutReady = true;
|
||||
} else {
|
||||
CC_LOG_WARNING("CCVKCmdFuncCopyBuffersToTexture: unsupported mipmap feature in optimal tiling.");
|
||||
const char *formatName = GFX_FORMAT_INFOS[(uint)gpuTexture->format].name.c_str();
|
||||
CC_LOG_WARNING("CCVKCmdFuncCopyBuffersToTexture: generate mipmap for %s is not supported on this platform", formatName);
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
if (!layoutReady) {
|
||||
insertImageMemoryBarrior(cmdBuff.vkCommandBuffer,
|
||||
gpuTexture->vkImage,
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT,
|
||||
|
||||
@@ -266,6 +266,7 @@ bool CCVKDevice::initialize(const GFXDeviceInfo &info) {
|
||||
|
||||
GFXQueueInfo queueInfo;
|
||||
queueInfo.type = GFXQueueType::GRAPHICS;
|
||||
queueInfo.forceSync = true;
|
||||
_queue = createQueue(queueInfo);
|
||||
|
||||
GFXCommandAllocatorInfo cmdAllocInfo;
|
||||
|
||||
@@ -187,7 +187,7 @@ SE_BIND_CTOR(js_gfx_GFXOffset_constructor, __jsb_cc_gfx_GFXOffset_class, js_cc_g
|
||||
|
||||
static bool js_cc_gfx_GFXOffset_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXOffset)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXOffset)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -433,7 +433,7 @@ SE_BIND_CTOR(js_gfx_GFXRect_constructor, __jsb_cc_gfx_GFXRect_class, js_cc_gfx_G
|
||||
|
||||
static bool js_cc_gfx_GFXRect_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRect)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRect)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -641,7 +641,7 @@ SE_BIND_CTOR(js_gfx_GFXExtent_constructor, __jsb_cc_gfx_GFXExtent_class, js_cc_g
|
||||
|
||||
static bool js_cc_gfx_GFXExtent_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXExtent)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXExtent)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -848,7 +848,7 @@ SE_BIND_CTOR(js_gfx_GFXTextureSubres_constructor, __jsb_cc_gfx_GFXTextureSubres_
|
||||
|
||||
static bool js_cc_gfx_GFXTextureSubres_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureSubres)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureSubres)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -1133,7 +1133,7 @@ SE_BIND_CTOR(js_gfx_GFXTextureCopy_constructor, __jsb_cc_gfx_GFXTextureCopy_clas
|
||||
|
||||
static bool js_cc_gfx_GFXTextureCopy_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureCopy)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureCopy)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -1420,7 +1420,7 @@ SE_BIND_CTOR(js_gfx_GFXBufferTextureCopy_constructor, __jsb_cc_gfx_GFXBufferText
|
||||
|
||||
static bool js_cc_gfx_GFXBufferTextureCopy_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBufferTextureCopy)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBufferTextureCopy)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -1746,7 +1746,7 @@ SE_BIND_CTOR(js_gfx_GFXViewport_constructor, __jsb_cc_gfx_GFXViewport_class, js_
|
||||
|
||||
static bool js_cc_gfx_GFXViewport_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXViewport)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXViewport)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -1995,7 +1995,7 @@ SE_BIND_CTOR(js_gfx_GFXColor_constructor, __jsb_cc_gfx_GFXColor_class, js_cc_gfx
|
||||
|
||||
static bool js_cc_gfx_GFXColor_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXColor)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXColor)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -2320,7 +2320,7 @@ SE_BIND_CTOR(js_gfx_GFXDeviceInfo_constructor, __jsb_cc_gfx_GFXDeviceInfo_class,
|
||||
|
||||
static bool js_cc_gfx_GFXDeviceInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDeviceInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDeviceInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -2530,7 +2530,7 @@ SE_BIND_CTOR(js_gfx_GFXContextInfo_constructor, __jsb_cc_gfx_GFXContextInfo_clas
|
||||
|
||||
static bool js_cc_gfx_GFXContextInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXContextInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXContextInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -2815,7 +2815,7 @@ SE_BIND_CTOR(js_gfx_GFXBufferInfo_constructor, __jsb_cc_gfx_GFXBufferInfo_class,
|
||||
|
||||
static bool js_cc_gfx_GFXBufferInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBufferInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBufferInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -3180,7 +3180,7 @@ SE_BIND_CTOR(js_gfx_GFXDrawInfo_constructor, __jsb_cc_gfx_GFXDrawInfo_class, js_
|
||||
|
||||
static bool js_cc_gfx_GFXDrawInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDrawInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDrawInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -3290,7 +3290,7 @@ SE_BIND_CTOR(js_gfx_GFXIndirectBuffer_constructor, __jsb_cc_gfx_GFXIndirectBuffe
|
||||
|
||||
static bool js_cc_gfx_GFXIndirectBuffer_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXIndirectBuffer)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXIndirectBuffer)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -3768,7 +3768,7 @@ SE_BIND_CTOR(js_gfx_GFXTextureInfo_constructor, __jsb_cc_gfx_GFXTextureInfo_clas
|
||||
|
||||
static bool js_cc_gfx_GFXTextureInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -4138,7 +4138,7 @@ SE_BIND_CTOR(js_gfx_GFXTextureViewInfo_constructor, __jsb_cc_gfx_GFXTextureViewI
|
||||
|
||||
static bool js_cc_gfx_GFXTextureViewInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureViewInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTextureViewInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -4739,7 +4739,7 @@ SE_BIND_CTOR(js_gfx_GFXSamplerInfo_constructor, __jsb_cc_gfx_GFXSamplerInfo_clas
|
||||
|
||||
static bool js_cc_gfx_GFXSamplerInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXSamplerInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXSamplerInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -4917,7 +4917,7 @@ SE_BIND_CTOR(js_gfx_GFXShaderMacro_constructor, __jsb_cc_gfx_GFXShaderMacro_clas
|
||||
|
||||
static bool js_cc_gfx_GFXShaderMacro_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShaderMacro)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShaderMacro)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -5123,7 +5123,7 @@ SE_BIND_CTOR(js_gfx_GFXUniform_constructor, __jsb_cc_gfx_GFXUniform_class, js_cc
|
||||
|
||||
static bool js_cc_gfx_GFXUniform_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXUniform)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXUniform)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -5369,7 +5369,7 @@ SE_BIND_CTOR(js_gfx_GFXUniformBlock_constructor, __jsb_cc_gfx_GFXUniformBlock_cl
|
||||
|
||||
static bool js_cc_gfx_GFXUniformBlock_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXUniformBlock)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXUniformBlock)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -5655,7 +5655,7 @@ SE_BIND_CTOR(js_gfx_GFXUniformSampler_constructor, __jsb_cc_gfx_GFXUniformSample
|
||||
|
||||
static bool js_cc_gfx_GFXUniformSampler_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXUniformSampler)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXUniformSampler)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -5864,7 +5864,7 @@ SE_BIND_CTOR(js_gfx_GFXShaderStage_constructor, __jsb_cc_gfx_GFXShaderStage_clas
|
||||
|
||||
static bool js_cc_gfx_GFXShaderStage_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShaderStage)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShaderStage)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -6188,7 +6188,7 @@ SE_BIND_CTOR(js_gfx_GFXAttribute_constructor, __jsb_cc_gfx_GFXAttribute_class, j
|
||||
|
||||
static bool js_cc_gfx_GFXAttribute_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXAttribute)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXAttribute)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -6476,7 +6476,7 @@ SE_BIND_CTOR(js_gfx_GFXShaderInfo_constructor, __jsb_cc_gfx_GFXShaderInfo_class,
|
||||
|
||||
static bool js_cc_gfx_GFXShaderInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShaderInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShaderInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -6724,7 +6724,7 @@ SE_BIND_CTOR(js_gfx_GFXInputAssemblerInfo_constructor, __jsb_cc_gfx_GFXInputAsse
|
||||
|
||||
static bool js_cc_gfx_GFXInputAssemblerInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXInputAssemblerInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXInputAssemblerInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -7049,7 +7049,7 @@ SE_BIND_CTOR(js_gfx_GFXColorAttachment_constructor, __jsb_cc_gfx_GFXColorAttachm
|
||||
|
||||
static bool js_cc_gfx_GFXColorAttachment_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXColorAttachment)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXColorAttachment)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -7454,7 +7454,7 @@ SE_BIND_CTOR(js_gfx_GFXDepthStencilAttachment_constructor, __jsb_cc_gfx_GFXDepth
|
||||
|
||||
static bool js_cc_gfx_GFXDepthStencilAttachment_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDepthStencilAttachment)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDepthStencilAttachment)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -7666,7 +7666,7 @@ SE_BIND_CTOR(js_gfx_GFXRenderPassInfo_constructor, __jsb_cc_gfx_GFXRenderPassInf
|
||||
|
||||
static bool js_cc_gfx_GFXRenderPassInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRenderPassInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRenderPassInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -7951,7 +7951,7 @@ SE_BIND_CTOR(js_gfx_GFXFramebufferInfo_constructor, __jsb_cc_gfx_GFXFramebufferI
|
||||
|
||||
static bool js_cc_gfx_GFXFramebufferInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFramebufferInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFramebufferInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -8238,7 +8238,7 @@ SE_BIND_CTOR(js_gfx_GFXBinding_constructor, __jsb_cc_gfx_GFXBinding_class, js_cc
|
||||
|
||||
static bool js_cc_gfx_GFXBinding_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBinding)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBinding)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -8346,7 +8346,7 @@ SE_BIND_CTOR(js_gfx_GFXBindingLayoutInfo_constructor, __jsb_cc_gfx_GFXBindingLay
|
||||
|
||||
static bool js_cc_gfx_GFXBindingLayoutInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBindingLayoutInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBindingLayoutInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -8746,7 +8746,7 @@ SE_BIND_CTOR(js_gfx_GFXBindingUnit_constructor, __jsb_cc_gfx_GFXBindingUnit_clas
|
||||
|
||||
static bool js_cc_gfx_GFXBindingUnit_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBindingUnit)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBindingUnit)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -8958,7 +8958,7 @@ SE_BIND_CTOR(js_gfx_GFXPushConstantRange_constructor, __jsb_cc_gfx_GFXPushConsta
|
||||
|
||||
static bool js_cc_gfx_GFXPushConstantRange_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPushConstantRange)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPushConstantRange)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -9126,7 +9126,7 @@ SE_BIND_CTOR(js_gfx_GFXPipelineLayoutInfo_constructor, __jsb_cc_gfx_GFXPipelineL
|
||||
|
||||
static bool js_cc_gfx_GFXPipelineLayoutInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineLayoutInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineLayoutInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -9231,7 +9231,7 @@ SE_BIND_CTOR(js_gfx_GFXInputState_constructor, __jsb_cc_gfx_GFXInputState_class,
|
||||
|
||||
static bool js_cc_gfx_GFXInputState_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXInputState)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXInputState)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -9787,7 +9787,7 @@ SE_BIND_CTOR(js_gfx_GFXRasterizerState_constructor, __jsb_cc_gfx_GFXRasterizerSt
|
||||
|
||||
static bool js_cc_gfx_GFXRasterizerState_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRasterizerState)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRasterizerState)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -10627,7 +10627,7 @@ SE_BIND_CTOR(js_gfx_GFXDepthStencilState_constructor, __jsb_cc_gfx_GFXDepthStenc
|
||||
|
||||
static bool js_cc_gfx_GFXDepthStencilState_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDepthStencilState)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXDepthStencilState)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -11045,7 +11045,7 @@ SE_BIND_CTOR(js_gfx_GFXBlendTarget_constructor, __jsb_cc_gfx_GFXBlendTarget_clas
|
||||
|
||||
static bool js_cc_gfx_GFXBlendTarget_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBlendTarget)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBlendTarget)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -11268,7 +11268,7 @@ SE_BIND_CTOR(js_gfx_GFXBlendState_constructor, __jsb_cc_gfx_GFXBlendState_class,
|
||||
|
||||
static bool js_cc_gfx_GFXBlendState_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBlendState)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBlendState)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -11709,7 +11709,7 @@ SE_BIND_CTOR(js_gfx_GFXPipelineStateInfo_constructor, __jsb_cc_gfx_GFXPipelineSt
|
||||
|
||||
static bool js_cc_gfx_GFXPipelineStateInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineStateInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineStateInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -11883,7 +11883,7 @@ SE_BIND_CTOR(js_gfx_GFXCommandBufferInfo_constructor, __jsb_cc_gfx_GFXCommandBuf
|
||||
|
||||
static bool js_cc_gfx_GFXCommandBufferInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXCommandBufferInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXCommandBufferInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -12050,7 +12050,7 @@ SE_BIND_CTOR(js_gfx_GFXQueueInfo_constructor, __jsb_cc_gfx_GFXQueueInfo_class, j
|
||||
|
||||
static bool js_cc_gfx_GFXQueueInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXQueueInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXQueueInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -12451,7 +12451,7 @@ SE_BIND_CTOR(js_gfx_GFXFormatInfo_constructor, __jsb_cc_gfx_GFXFormatInfo_class,
|
||||
|
||||
static bool js_cc_gfx_GFXFormatInfo_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFormatInfo)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFormatInfo)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -12624,7 +12624,7 @@ SE_BIND_CTOR(js_gfx_GFXMemoryStatus_constructor, __jsb_cc_gfx_GFXMemoryStatus_cl
|
||||
|
||||
static bool js_cc_gfx_GFXMemoryStatus_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXMemoryStatus)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXMemoryStatus)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -12713,7 +12713,7 @@ SE_BIND_CTOR(js_gfx_GFXObject_constructor, __jsb_cc_gfx_GFXObject_class, js_cc_g
|
||||
|
||||
static bool js_cc_gfx_GFXObject_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXObject)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXObject)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -14029,7 +14029,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXBuffer_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBuffer)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBuffer)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -14338,7 +14338,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXTexture_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTexture)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXTexture)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -14686,7 +14686,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXSampler_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXSampler)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXSampler)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -14910,7 +14910,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXShader_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShader)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXShader)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -15368,7 +15368,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXInputAssembler_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXInputAssembler)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXInputAssembler)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -15555,7 +15555,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXRenderPass_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRenderPass)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXRenderPass)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -15734,7 +15734,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXFramebuffer_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFramebuffer)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFramebuffer)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -15937,7 +15937,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXBindingLayout_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBindingLayout)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXBindingLayout)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -16081,7 +16081,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXPipelineLayout_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineLayout)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineLayout)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -16348,7 +16348,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXPipelineState_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineState)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXPipelineState)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -16460,7 +16460,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXCommandAllocator_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXCommandAllocator)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXCommandAllocator)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -17056,7 +17056,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXCommandBuffer_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXCommandBuffer)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXCommandBuffer)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -17194,7 +17194,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXFence_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFence)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXFence)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
@@ -17369,7 +17369,7 @@ extern se::Object* __jsb_cc_gfx_GFXObject_proto;
|
||||
|
||||
static bool js_cc_gfx_GFXQueue_finalize(se::State& s)
|
||||
{
|
||||
CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXQueue)", s.nativeThisObject());
|
||||
// CC_LOG_INFO("jsbindings: finalizing JS object %p (cc::gfx::GFXQueue)", s.nativeThisObject());
|
||||
auto iter = se::NonRefNativePtrCreatedByCtorMap::find(s.nativeThisObject());
|
||||
if (iter != se::NonRefNativePtrCreatedByCtorMap::end())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user