Skip to content

Commit 60f7ff3

Browse files
committed
DeEmbedFilter: added nouts as well as npoints to test helper accessors
1 parent 4ff5f91 commit 60f7ff3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scopeprotocols/DeEmbedFilter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ DeEmbedFilter::DeEmbedFilter(const string& color)
6565
m_cachedNumPoints = 0;
6666
m_cachedMaxGain = 0;
6767
m_cachedOutLen = 0;
68+
m_cachedNouts = 0;
6869
m_cachedIstart = 0;
6970

7071
m_forwardInBuf.SetCpuAccessHint(AcceleratorBuffer<float>::HINT_LIKELY);
@@ -271,6 +272,7 @@ void DeEmbedFilter::DoRefresh(bool invert, vk::raii::CommandBuffer& cmdBuf, shar
271272
size_t outlen = iend - istart;
272273
cap->Resize(outlen);
273274
m_cachedOutLen = outlen;
275+
m_cachedNouts = nouts;
274276

275277
//Prepare to do all of our compute stuff in one dispatch call to reduce overhead
276278
cmdBuf.begin({});

scopeprotocols/DeEmbedFilter.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* *
33
* libscopeprotocols *
44
* *
5-
* Copyright (c) 2012-2024 Andrew D. Zonenberg and contributors *
5+
* Copyright (c) 2012-2025 Andrew D. Zonenberg and contributors *
66
* All rights reserved. *
77
* *
88
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
@@ -60,6 +60,9 @@ class DeEmbedFilter : public Filter
6060
size_t test_GetOutLen()
6161
{ return m_cachedOutLen; }
6262

63+
size_t test_GetNouts()
64+
{ return m_cachedNouts; }
65+
6366
AcceleratorBuffer<float>& test_GetCachedInputBuffer()
6467
{ return m_forwardInBuf; }
6568

@@ -95,6 +98,7 @@ class DeEmbedFilter : public Filter
9598

9699
size_t m_cachedNumPoints;
97100
size_t m_cachedOutLen;
101+
size_t m_cachedNouts;
98102
size_t m_cachedIstart;
99103

100104
AcceleratorBuffer<float> m_forwardInBuf;

0 commit comments

Comments
 (0)