Directx 11 Direct3D 11常量缓冲区太小。。。。。。

Directx 11 Direct3D 11常量缓冲区太小。。。。。。,directx-11,hlsl,direct3d11,Directx 11,Hlsl,Direct3d11,另外,这可能是我的DDS立方体纹理没有绘制G缓冲区的原因吗?!这只是一个警告,但我一整天都坚持这一点,没有任何帮助 这意味着您在运行时绑定的常量缓冲区大小与着色器中的常量缓冲区声明不匹配。 D3D11 WARNING: ID3D11DeviceContext::Draw: The size of the Constant Buffer at slot 0 of the Vertex Shader unit is too small (16 bytes provided, 64 bytes, at

另外,这可能是我的DDS立方体纹理没有绘制G缓冲区的原因吗?!这只是一个警告,但我一整天都坚持这一点,没有任何帮助

这意味着您在运行时绑定的常量缓冲区大小与着色器中的常量缓冲区声明不匹配。
D3D11 WARNING: ID3D11DeviceContext::Draw: The size of the Constant Buffer at slot 0 of the Vertex Shader unit is too small (16 bytes provided, 64 bytes, at least, expected).` `This is OK, as out-of-bounds reads are defined to return 0. It is also possible the developer knows the missing data will not be used anyway.` `This is only a problem if the developer actually intended to bind a sufficiently large Constant Buffer for what the shader expects.`  `[ EXECUTION WARNING #351: DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL]