Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion slangpy/slang/staticarray.slang
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ public interface ISizedArray<T, let D : int> { __subscript(int index)->T { get;
// Array, vector and matrix conform to ISizedArray
public extension<T, let D : int> Array<T, D> : ISizedArray<T, D> {}
public extension<T, let D : int> vector<T, D> : ISizedArray<T, D> {}
public extension<T, let R : int, let C : int, let L : int> matrix<T, R, C, L> : ISizedArray<vector<T, C>, R> {}
public extension<T, let R : int, let C : int, let L : MatrixLayoutMode> matrix<T, R, C, L> : ISizedArray<vector<T, C>, R> {}
2 changes: 1 addition & 1 deletion src/sgl/device/print.slang
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ extension vector<T, N> : IPrintable {
uint get_printable_data(uint index) { return this[index / T::printable_data_count()].get_printable_data(index % T::printable_data_count()); }
};

__generic<T : IPrintable, let R : int, let C : int, let L : int>
__generic<T : IPrintable, let R : int, let C : int, let L : MatrixLayoutMode>
extension matrix<T, R, C, L> : IPrintable {
[ForceInline]
static Layout printable_layout() { return Layout(Kind::matrix, T::printable_layout().type, R, C); }
Expand Down
Loading