[add] ReleasePatch

This commit is contained in:
kimnuri
2026-01-07 11:40:59 +09:00
parent 319ad176ed
commit 136a13b8e1
3 changed files with 55 additions and 14 deletions
+5 -2
View File
@@ -280,9 +280,10 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
m_pVertexPositions = new _float3[m_iNumVertices];
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
#ifdef _DEBUG
m_VertexTexcoords = new _float2[m_iNumVertices];
ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices);
#endif // _DEBUG
for (_uint i = 0; i < m_iNumVertices; ++i)
{
@@ -302,9 +303,11 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
memcpy(&pVertices[i].vBinormal, &SaveMesh->Vertices[i].BiNoraml, sizeof(_float3));
XMStoreFloat3(&pVertices[i].vBinormal,
XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
#ifdef _DEBUG
pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV;
memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2));
#endif // _DEBUG
}
D3D11_SUBRESOURCE_DATA InitialVBData{};