좆같아서 글쓰자마자 바로 고쳤음.


https://gall.dcinside.com/mgallery/board/view/?id=github&no=39702&exception_mode=recommend&page=1

원인은 며칠 전 디버깅 글과 같음. 내용은 벡터 주소와 벡터 시작 원소의 주소는 다르다는 거였음.

근데 위에 텍스쳐 문제도 ㅅㅂ ㅋㅋ 똑같은 문제였음. 며칠 전 글써놓고 또 실수하는 수듄;;;


1
2
3
4
5
    std::vector<UINT8>* texture = &m_TextureHash[resourceName];
    D3D12_SUBRESOURCE_DATA textureData = {}; 
    textureData.pData = texture;
    textureData.RowPitch = 256 * 4;
    textureData.SlicePitch = textureData.RowPitch * 256;
cs

1
2
3
4
5
    std::vector<UINT8>* texture = &m_TextureHash[resourceName];
    D3D12_SUBRESOURCE_DATA textureData = {}; 
    textureData.pData = &(*texture)[0];
    textureData.RowPitch = 256 * 4;
    textureData.SlicePitch = textureData.RowPitch * 256;
cs

나는 병신인가...?