Skip to content

Commit d5a1482

Browse files
committed
[62.Cad] small fixes
1 parent dca423d commit d5a1482

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

62_CAD/DrawBuffers.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ struct DrawBuffersFiller
4949

5050
void allocateStylesBuffer(ILogicalDevice* logicalDevice, uint32_t lineStylesCount);
5151

52-
void allocateCustomClipProjectionBuffer(ILogicalDevice* logicalDevice, uint32_t ClipProjectionDataCount);
53-
5452
//! this function fills buffers required for drawing a polyline and submits a draw through provided callback when there is not enough memory.
5553
void drawPolyline(const CPolylineBase& polyline, const LineStyleInfo& lineStyleInfo, SIntendedSubmitInfo& intendedNextSubmit);
5654

62_CAD/vertex_shader.hlsl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ClipProjectionData getClipProjectionData(in MainObject mainObj)
3030
ret.projectionToNDC = vk::RawBufferLoad<float64_t3x3>(mainObj.clipProjectionAddress, 8u);
3131
ret.minClipNDC = vk::RawBufferLoad<float32_t2>(mainObj.clipProjectionAddress + sizeof(float64_t3x3), 8u);
3232
ret.maxClipNDC = vk::RawBufferLoad<float32_t2>(mainObj.clipProjectionAddress + sizeof(float64_t3x3) + sizeof(float32_t2), 8u);
33+
return ret;
3334
}
3435
else
3536
{
@@ -136,9 +137,9 @@ PSInput main(uint vertexID : SV_VertexID)
136137
double2 points[3u];
137138
points[0u] = vk::RawBufferLoad<double2>(drawObj.geometryAddress, 8u);
138139
points[1u] = vk::RawBufferLoad<double2>(drawObj.geometryAddress + sizeof(double2), 8u);
139-
points[2u] = vk::RawBufferLoad<double2>(drawObj.geometryAddress + sizeof(double2) * 2u, 8u)
140+
points[2u] = vk::RawBufferLoad<double2>(drawObj.geometryAddress + sizeof(double2) * 2u, 8u);
140141

141-
const float phaseShift = vk::RawBufferLoad<float>(drawObj.geometryAddress + sizeof(double2) * 3u, 8u);
142+
const float phaseShift = vk::RawBufferLoad<float>(drawObj.geometryAddress + sizeof(double2) * 3u, 8u);
142143
const float patternStretch = vk::RawBufferLoad<float>(drawObj.geometryAddress + sizeof(double2) * 3u + sizeof(float), 8u);
143144
outV.setCurrentPhaseShift(phaseShift);
144145
outV.setPatternStretch(patternStretch);

0 commit comments

Comments
 (0)