blob: 244d97c732de9a8bf88f1402e694a265da2fbd4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//TEST_IGNORE_FILE:
public struct MxWeights<let TBsdfCount : int>
{
public float3 weights[TBsdfCount];
public __init()
{
for (int i = 0; i < TBsdfCount; i++)
weights[i] = float3(0.0f);
}
}
public interface IMxLayeredMaterialData
{
public int getBsdfCount();
public int getLayerCount();
}
public interface IMxLayeredWeightCalculator
{
public void calculateWeights<let TBsdfCount : int, let TLayerCount: int, TLayeredMaterialData : IMxLayeredMaterialData>(
const TLayeredMaterialData data, out MxWeights<TBsdfCount> weights);
}
|