1
矩陣和float4x4之間的區別。當我定義hlsl
的cBuffer
,一些例子顯示是什麼HLSL
cbuffer cbPerObject
{
matrix worldMatrix;
matrix viewMatrix;
matrix projectionMatrix;
};
而其他節目
cbuffer cbPerObject
{
float4x4 worldMatrix;
float4x4 viewMatrix;
float4x4 projectionMatrix;
};
是否就意味着類型的矩陣可以有無限的元素,但float4x4只能容納前16個元素?
哪一個你喜歡HLSL?