| 123456789101112131415161718192021 |
- #include "Common.hlsl"
- Texture2D<float4> textures[] : register(t0, space1);
- SamplerState gSampler : register(s0, space0);
- struct VertexData
- {
- float2 texcoord;
- float3 normal;
- };
- StructuredBuffer<int> textureIdBuffer : register(t1, space2);
- StructuredBuffer<int> indexBuffer : register(t1, space3);
- StructuredBuffer<VertexData> vertexData : register(t1, space4);
- StructuredBuffer<int> indexOffsetBuffer : register(t1, space5);
- [shader("closesthit")]
- void SimpleBlocksClosestHit(inout HitInfo payload, SimpleBlocksAttributes attrib)
- {
- // TODO: reflection rays and shadow rays ...
- }
|